[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[McIDAS #TOW-524867]: McADDE install
- Subject: [McIDAS #TOW-524867]: McADDE install
- Date: Tue, 12 Apr 2016 15:21:26 -0600
Hi Justin,
re:
> I am looking to install McADDE on my server.
OK. That's ADDE not McADDE :-)
re:
> I created a new user with the following command:
>
> "useradd -m -d /home/mcidas -s /sbin/nologin -U mcadde -G mcidas"
>
> After this I logged in as root and went to the mcidas home directory. There
> is ran the following command:
>
> "sh ./mcinet2015.sh install mcadde"
>
> Below is the result of running the command. Any thoughts?
>
> [root@justin mcidas]# sh ./mcinet2015.sh install mcadde
> mcinet2015: /etc/services: mcidas: adding service lines
> mcinet2015: xinet: Using xinetd.d to set up services
> mcinet2015: /etc/hosts.allow: mcidas: adding service lines
> mcinet2015: /etc/xinetd.d/mcidas: modifying file
> ./mcinet2015.sh: line 714: [: too many arguments
> mcinet2015: WARNING: xinetd not listening
> Try running the script again in a few minutes.
Hmm... the line with the 'too many arguments' text tells me that I did
not update the mcinet2015.sh script in our McIDAS Downloads section of
our web site after I figured out the problem.
You can do one of two things:
- re-download mcinet2015.sh
I just updated what is there with a version with the fix
- Or, edit your existing mcinet2015.sh script and:
change:
if [ "$act" != "status" -a $use_solaris10 -eq 0 -a $use_launchd -eq 0 ]; then
to:
if [ "$act" != "status" -a "$use_solaris10" == "0" -a "$use_launchd" == "0" ];
then
After updating you mcinet2015.sh, rerun the command as you did previously:
<as 'root'>
cd ~mcidas
sh ./mcinet2015.sh install mcadde
re:
> Also to add, I checked /etc/passwd and this was the entry
> *mcadde:x:508:504::/home/mcidas:/sbin/nologin*
Looks OK.
re:
> I also made sure the file .mcenv exists in the directory /home/mcidas and
> added the following info to the file.
This is not used in the remote access setup step. It will, however, be
used during remote connections.
re:
> *# Bourne/Korn shell environment variable definitions for the user 'mcidas'
>
> # umask
> umask 002
>
> # MCHOME and McINST_ROOT
> MCHOME=/home/mcidas
>
> # McIDAS environment variables
> MCDATA=$MCHOME/workdata
> MCPATH=${MCDATA}:$MCHOME/data:$MCHOME/help
> MCGUI=$MCHOME/bin
> MCTABLE_READ="MCHOME/mcidas/data/MCTABLE.TXT"
> MCTABLE_WRITE="MCHOME/mcidas/data/MCTABLE.TXT"
>
> # Turn on ADDE logging
> ADDE_LOGGING=YES
>
> # Define the PATH
> PATH=${MCGUI}:$PATH
>
> # Export the environment variables above
> export MCPATH MCTABLE_READ MCTABLE_WRITE ADDE_LOGGING PATH
>
> # CD to the MCDATA directory
> cd $MCDATA*
There was no need to modify ~mcidas/.mcenv
re:
> Finally, I restarted the xinetd.
Good thought. The problem was in mcinet2015.sh itself. The fixed
version should work correctly for you.
Cheers,
Tom
--
****************************************************************************
Unidata User Support UCAR Unidata Program
(303) 497-8642 P.O. Box 3000
address@hidden Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage http://www.unidata.ucar.edu
****************************************************************************
Ticket Details
===================
Ticket ID: TOW-524867
Department: Support McIDAS
Priority: Normal
Status: Closed