the setting of seadas7.4 in Macos 10.13.3
the setting of seadas7.4 in Macos 10.13.3
Dear,
I started to used the Macos to instead of Linux to process data, but there are few problems on seadas settings. I have installed seadas7.4 where was at "/Applications/seadas-7.4", then I add the path to environmental variables in ~/.bash_profile just like what I did in Linux.
export PATH="/Applications/seadas-7.4/bin:$PATH"
export OCSSWROOT=/Applications/seadas-7.4/ocssw
source $OCSSWROOT/OCSSW_bash.env
After that, I used the source ~/.bash_profile to make it into effect. However, I can't start the seadas and l2gen in terminal, the information was:
-bash: seadas: coomand not found, -bash: l2gen: command not found
I have no idea how to solve it , as I am not very familiar with the MacOs, could someone give me some suggestions?
Best,
Zhigang
I started to used the Macos to instead of Linux to process data, but there are few problems on seadas settings. I have installed seadas7.4 where was at "/Applications/seadas-7.4", then I add the path to environmental variables in ~/.bash_profile just like what I did in Linux.
export PATH="/Applications/seadas-7.4/bin:$PATH"
export OCSSWROOT=/Applications/seadas-7.4/ocssw
source $OCSSWROOT/OCSSW_bash.env
After that, I used the source ~/.bash_profile to make it into effect. However, I can't start the seadas and l2gen in terminal, the information was:
-bash: seadas: coomand not found, -bash: l2gen: command not found
I have no idea how to solve it , as I am not very familiar with the MacOs, could someone give me some suggestions?
Best,
Zhigang
Filters:
-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
the setting of seadas7.4 in Macos 10.13.3
You should put those 3 commands in ~/.profile instead of ~/.bash_profile
Regardless, once you feel you have set up the environment correctly, type the following commands:
which seadas
which l2gen
Does it show the programs?
If not then try these commands:
echo $PATH
echo $OCSSWROOT
echo $OCDATAROOT
Do the results look correct?
$OCDATAROOT should return: /Applications/seadas-7.4/ocssw/run/data
Also did you install ocssw? The program l2gen is contained in the OCSSW package and only installing SeaDAS will not of itself give you the OCSSW package.
I don't think your terminal responded with an incorrect spelling 'coomand not found' so I'm guessing you typed this. It is best to cut and paste actual terminal responses so we can see the correct and full message. Also give us the exact command you entered so we get the context of the message.
One thing to note is that you don't have to put seadas in "/Applications". Depending on your admin status on your machine this directory may have permissions issues. I usually install seadas in "~/seadas-7.4"
Danny
Regardless, once you feel you have set up the environment correctly, type the following commands:
which seadas
which l2gen
Does it show the programs?
If not then try these commands:
echo $PATH
echo $OCSSWROOT
echo $OCDATAROOT
Do the results look correct?
$OCDATAROOT should return: /Applications/seadas-7.4/ocssw/run/data
Also did you install ocssw? The program l2gen is contained in the OCSSW package and only installing SeaDAS will not of itself give you the OCSSW package.
I don't think your terminal responded with an incorrect spelling 'coomand not found' so I'm guessing you typed this. It is best to cut and paste actual terminal responses so we can see the correct and full message. Also give us the exact command you entered so we get the context of the message.
One thing to note is that you don't have to put seadas in "/Applications". Depending on your admin status on your machine this directory may have permissions issues. I usually install seadas in "~/seadas-7.4"
Danny
the setting of seadas7.4 in Macos 10.13.3
Thanks Danny.
According to your suggestions, I set up the environmental variables in ~/.profile, but I can't run the seadas and l2gen in terminal. Here is the outputs of terminal:
promote:~ zhigang$ vi ~/.profile
export PATH="/Users/zhigang/seadas-7.4/bin:$PATH"
export OCSSWROOT=/Users/zhigang/seadas-7.4/ocssw
source $OCSSWROOT/OCSSW_bash.env
promote:~ zhigang$ source ~/.profile
promote:~ zhigang$ which seadas
promote:~ zhigang$ which l2gen
promote:~ zhigang$ echo $PATH
/Users/zhigang/seadas-7.4/ocssw/run/bin3/macosx_intel:/Users/zhigang/seadas-7.4/ocssw/run/scripts:/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel:/Users/zhigang/seadas-7.4/bin:/Applications/seadas-7.4/bin:/anaconda3/bin:/Applications/seadas-7.4/ocssw/run/bin3/macosx_intel:/Applications/seadas-7.4/ocssw/run/scripts:/Applications/seadas-7.4/ocssw/run/bin/macosx_intel:/Applications/seadas-7.4/bin:/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
promote:~ zhigang$ echo $OCSSWROOT
/Users/zhigang/seadas-7.4/ocssw
promote:~ zhigang$ echo $OCDATAROOT
/Users/zhigang/seadas-7.4/ocssw/run/data
promote:~ zhigang$ which seadas
promote:~ zhigang$ vi ~/.profile
promote:~ zhigang$ echo $PATH
/Users/zhigang/seadas-7.4/ocssw/run/bin3/macosx_intel:/Users/zhigang/seadas-7.4/ocssw/run/scripts:/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel:/Users/zhigang/seadas-7.4/bin:/Applications/seadas-7.4/bin:/anaconda3/bin:/Applications/seadas-7.4/ocssw/run/bin3/macosx_intel:/Applications/seadas-7.4/ocssw/run/scripts:/Applications/seadas-7.4/ocssw/run/bin/macosx_intel:/Applications/seadas-7.4/bin:/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
promote:~ zhigang$ echo $OCSSWROOT
/Users/zhigang/seadas-7.4/ocssw
promote:~ zhigang$ echo $OCDATAROOT
/Users/zhigang/seadas-7.4/ocssw/run/data
promote:~ zhigang$ which seadas
promote:~ zhigang$ which l2gen
promote:~ zhigang$ l2gen
-bash: l2gen: command not found
promote:~ zhigang$ l2gen
-bash: l2gen: command not found
The configuration is always successful in Linux, but the Mac was failed. It is confused.
Best,
Zhigang
According to your suggestions, I set up the environmental variables in ~/.profile, but I can't run the seadas and l2gen in terminal. Here is the outputs of terminal:
promote:~ zhigang$ vi ~/.profile
export PATH="/Users/zhigang/seadas-7.4/bin:$PATH"
export OCSSWROOT=/Users/zhigang/seadas-7.4/ocssw
source $OCSSWROOT/OCSSW_bash.env
promote:~ zhigang$ source ~/.profile
promote:~ zhigang$ which seadas
promote:~ zhigang$ which l2gen
promote:~ zhigang$ echo $PATH
/Users/zhigang/seadas-7.4/ocssw/run/bin3/macosx_intel:/Users/zhigang/seadas-7.4/ocssw/run/scripts:/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel:/Users/zhigang/seadas-7.4/bin:/Applications/seadas-7.4/bin:/anaconda3/bin:/Applications/seadas-7.4/ocssw/run/bin3/macosx_intel:/Applications/seadas-7.4/ocssw/run/scripts:/Applications/seadas-7.4/ocssw/run/bin/macosx_intel:/Applications/seadas-7.4/bin:/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
promote:~ zhigang$ echo $OCSSWROOT
/Users/zhigang/seadas-7.4/ocssw
promote:~ zhigang$ echo $OCDATAROOT
/Users/zhigang/seadas-7.4/ocssw/run/data
promote:~ zhigang$ which seadas
promote:~ zhigang$ vi ~/.profile
promote:~ zhigang$ echo $PATH
/Users/zhigang/seadas-7.4/ocssw/run/bin3/macosx_intel:/Users/zhigang/seadas-7.4/ocssw/run/scripts:/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel:/Users/zhigang/seadas-7.4/bin:/Applications/seadas-7.4/bin:/anaconda3/bin:/Applications/seadas-7.4/ocssw/run/bin3/macosx_intel:/Applications/seadas-7.4/ocssw/run/scripts:/Applications/seadas-7.4/ocssw/run/bin/macosx_intel:/Applications/seadas-7.4/bin:/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
promote:~ zhigang$ echo $OCSSWROOT
/Users/zhigang/seadas-7.4/ocssw
promote:~ zhigang$ echo $OCDATAROOT
/Users/zhigang/seadas-7.4/ocssw/run/data
promote:~ zhigang$ which seadas
promote:~ zhigang$ which l2gen
promote:~ zhigang$ l2gen
-bash: l2gen: command not found
promote:~ zhigang$ l2gen
-bash: l2gen: command not found
The configuration is always successful in Linux, but the Mac was failed. It is confused.
Best,
Zhigang
the setting of seadas7.4 in Macos 10.13.3
Thanks for your reply. I have tried this, but it did't work.:cry:
the setting of seadas7.4 in Macos 10.13.3
Linux doens't have
Check that the OCSSW scripts and programs locations match the PATH entries. If you installed the OCSSW software from the command line it could end up in
/Application
s, so SeaDAS 7 is normally installed to the user's home directory. You used export OCSSWROOT=/Users/zhigang/seadas-7.4/ocssw
Check that the OCSSW scripts and programs locations match the PATH entries. If you installed the OCSSW software from the command line it could end up in
$HOME/ocssw
instead of /Applications/seadas-7.4/ocssw
, but if you installed using the GUI you need: export OCSSWROOT=/Applications/seadas-7.4/ocssw
.-
- Subject Matter Expert
- Posts: 306
- Joined: Mon Apr 07, 2008 4:40 pm America/New_York
- Been thanked: 3 times
the setting of seadas7.4 in Macos 10.13.3
Did OCSSW successfully install? Does l2gen exist? When you installed OCSSW did you do it via the GUI or at the command line?
What does this command return?
ls -l /Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel/l2gen
I do notice you have both "/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel" and "/Applications/seadas-7.4/ocssw/run/bin/macosx_intel" in your PATH. That's not good. Once you have edited your .profile you should open a new terminal window instead of doing "source .profile".
Regarding launching the seadas GUI from the command line on a Mac that is a different issue. Do you need to launch it from the command line. You can do it from the browser.
If you need to launch the seadas GUI from the command line then you can set up an alias by adding the following line in your .profile
alias seadas=/Users/zhigang/seadas-7.4/bin/seadas.app/Contents/MacOS/JavaApplicationStub
Danny
What does this command return?
ls -l /Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel/l2gen
I do notice you have both "/Users/zhigang/seadas-7.4/ocssw/run/bin/macosx_intel" and "/Applications/seadas-7.4/ocssw/run/bin/macosx_intel" in your PATH. That's not good. Once you have edited your .profile you should open a new terminal window instead of doing "source .profile".
Regarding launching the seadas GUI from the command line on a Mac that is a different issue. Do you need to launch it from the command line. You can do it from the browser.
If you need to launch the seadas GUI from the command line then you can set up an alias by adding the following line in your .profile
alias seadas=/Users/zhigang/seadas-7.4/bin/seadas.app/Contents/MacOS/JavaApplicationStub
Danny
the setting of seadas7.4 in Macos 10.13.3
Dear Danny,
I have reinstalled the OCSSW via command line. It does work now. The OCSSW was directly copied to Macos from Ubuntu 14.04 before, therefore Mac can not find the file due to the difference between Mac and Linux, I guess. Otherwise, the Seadas can be launched from Launchpad, I just to test whether the environmental variables was successfully set up via command line.
Thank you again for your detailed answers.
Regards,
Zhigang
I have reinstalled the OCSSW via command line. It does work now. The OCSSW was directly copied to Macos from Ubuntu 14.04 before, therefore Mac can not find the file due to the difference between Mac and Linux, I guess. Otherwise, the Seadas can be launched from Launchpad, I just to test whether the environmental variables was successfully set up via command line.
Thank you again for your detailed answers.
Regards,
Zhigang
the setting of seadas7.4 in Macos 10.13.3
Yes, the OCSSW were installed to the home directory via command line. I have modified the OCSSWROOT, now it works.
Thanks!
Zhigang
Thanks!
Zhigang