StaMPS v3.2.1 problem

504 views
Skip to first unread message

qing zhao

unread,
May 10, 2013, 4:48:30 AM5/10/13
to mai...@googlegroups.com
Dear All,

I followed the manual to install StaMPS. Then I edited CONFIG.bash file as follows:
export STAMPS="/usr/local/StaMPS_v3.2.1"
export SAR="/home/ahooper/software/ROI_PAC_3_0"
export GETORB_BIN="/usr/local/bin"
export SAR_ODR_DIR="/home/orbits"
#export SAR_PRC_DIR  "/home/ahooper/software/SAR_FILES/PRC"
export VOR_DIR="/home/SAR_FILES/VOR"
export INS_DIR="/home/SAR_FILES/INS"
export DORIS_BIN="/usr/local/bin"
export TRIANGLE_BIN="/usr/local/triangle"
export SNAPHU_BIN="/usr/local/bin"

And then I added "source /usr/local/StaMPS_v3.2.1/StaMPS_CONFIG.bash " to the end of file "home/.bashrc".

However, when any command of StaMPA, such as pscdem, link_slcs, it shows in terminal that "pscdem: command not found" ," link_slcs: command not found"

Would you please give some suggestions to solve this problem?

Thanks a lot.

Jennifer

David Bekaert

unread,
May 10, 2013, 4:57:30 AM5/10/13
to mai...@googlegroups.com
Hi Jennifer,

These are scripts in the bin folder of StaMPS.
Are you sure you have specified the correct path of your stamps software?

  export STAMPS="/usr/local/StaMPS_v3.2.1"

The bin folder is linked to this path.
You might need to source the file first, before it works.
I.e. close the terminal and launch it again.

Cheers,

David



--
You received this message because you are subscribed to the Google Groups "MAINSAR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mainsar+u...@googlegroups.com.
To post to this group, send email to mai...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Karsten Spaans

unread,
May 10, 2013, 5:01:04 AM5/10/13
to mai...@googlegroups.com
Hi Jennifer,

Did you follow the very first steps in the Installation manual, i.e.:
cd StaMPS v3.2/src
make
make install

These scripts are written in C, so they have to be compiled first.

Cheers,
Karsten

qing zhao

unread,
May 11, 2013, 2:44:25 AM5/11/13
to mai...@googlegroups.com
Dear Karsten,

Thanks for your reply. I repeated the installation steps. The outputs of screen are as follows below. Then I specified the path of  stamps software

  export STAMPS="/usr/local/StaMPS_v3.2.1"

and add "source /usr/local/StaMPS_v3.2.1/StaMPS_CONFIG.bash" to /home/jennifer/.bashrc

However, the same problem still occurs.
root@jennifer-T7600:/usr/local/StaMPS_v3.2.1# link_slcs /home/jennifer/ASARL1
link_slcs: command not found



************************************************************************************
root@jennifer-T7600:/usr/local/StaMPS_v3.2.1/src# make
g++ -O3   -c -o calamp.o calamp.c
g++ -O3 calamp.o -o calamp
g++ -O3   -c -o selpsc_patch.o selpsc_patch.c
g++ -O3 selpsc_patch.o -o selpsc_patch
g++ -O3   -c -o selsbc_patch.o selsbc_patch.c
g++ -O3 selsbc_patch.o -o selsbc_patch
g++ -O3   -c -o cpxsum.o cpxsum.c
g++ -O3 cpxsum.o -o cpxsum
g++ -O3   -c -o pscphase.o pscphase.c
g++ -O3 pscphase.o -o pscphase
g++ -O3   -c -o psclonlat.o psclonlat.c
g++ -O3 psclonlat.o -o psclonlat
g++ -O3   -c -o pscdem.o pscdem.c
g++ -O3 pscdem.o -o pscdem
root@jennifer-T7600:/usr/local/StaMPS_v3.2.1/src# make install
make definstall;
make[1]: Entering directory `/usr/local/StaMPS_v3.2.1/src'
dir=../bin; \
            if test ! -d $dir; then \
          echo "Sorry, dir ../bin does not exist, exiting..."; exit; fi; \
        echo Installing in directory: $dir; \
        list='calamp selpsc_patch selsbc_patch cpxsum pscphase psclonlat pscdem  '; for p in $list; do \
          echo "Installing (copy): $p"; \
          cp -f $p ../bin/$p; \
        done
Installing in directory: ../bin
Installing (copy): calamp
Installing (copy): selpsc_patch
Installing (copy): selsbc_patch
Installing (copy): cpxsum
Installing (copy): pscphase
Installing (copy): psclonlat
Installing (copy): pscdem
make cleaner
make[2]: Entering directory `/usr/local/StaMPS_v3.2.1/src'
* Removed junk.
* Removed executables in source dir:  /usr/local/StaMPS_v3.2.1/src.
make[2]: Leaving directory `/usr/local/StaMPS_v3.2.1/src'
make[1]: Leaving directory `/usr/local/StaMPS_v3.2.1/src'

qing zhao

unread,
May 11, 2013, 2:55:22 AM5/11/13
to mai...@googlegroups.com
Hi David,

Thanks for your reply. I rechecked the path of stamps and /home/jennifer/.bashrc file. The path should be right. I also relaunched terminal. However the problem still occurs.
Then I reinstalled StaMPS. The steps and outputs of screen are as follows:

******************************


Then I specified the path of  stamps software

  export STAMPS="/usr/local/StaMPS_v3.2.1"

and add "source /usr/local/StaMPS_v3.2.1/StaMPS_CONFIG.bash" to /home/jennifer/.bashrc

However, the problem occurs again.







On Fri, May 10, 2013 at 4:57 AM, David Bekaert <bekaer...@gmail.com> wrote:

David Bekaert

unread,
May 11, 2013, 4:55:10 AM5/11/13
to mai...@googlegroups.com
Did you try to just type in the command line: source /usr/local/StaMPS_v3.2.1/StaMPS_CONFIG.bash
Perhaps ~/.bashrc is not your default shell type.

David

qing zhao

unread,
May 13, 2013, 1:13:07 AM5/13/13
to mai...@googlegroups.com
Dear David,


I just typed the command line. It works. Thanks for your help very much.


Jennifer
Reply all
Reply to author
Forward
0 new messages