Results 1 to 4 of 4
Hi all,
I'm trying to install MeV software and everything goes really smooth untill the very last step where I have to run the tmev.sh script.
Code:
ruben ruben-acer-6935:~/MeV/MeV_4_7_3$ ./tmev.sh
...
- 11-11-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 2
installation MeV
Hi all,
I'm trying to install MeV software and everything goes really smooth untill the very last step where I have to run the tmev.sh script.
This is the error, I googled for answers and tried some of them but with no succes. (e.g. used different shells)Code:ruben ruben-acer-6935:~/MeV/MeV_4_7_3$ ./tmev.sh /home/ruben/MeV/MeV_4_7_3 ./tmev.sh: line 50: syntax error near unexpected token `;;' ./tmev.sh: line 50: ` exit 1;;'
This is the script:
Code:#!/bin/sh #*********************************************************************** # # Copyright (c) 1999-2005 The Institute for Genomic Research (TIGR). # Copyright (c) 2005-2008, the Dana-Farber Cancer Institute (DFCI), # J. Craig Venter Institute (JCVI) and the University of Washington. # All rights reserved. # # This software is OSI Certified Open Source Software. # OSI Certified is a certification mark of the Open Source Initiative. # #*********************************************************************** # # $RCSfile: tmev.sh,v $ # $Revision: 1.1 $ # $Date: 2007/12/12 21:52:48 $ # $Author: eleanorahowe $ # $State: Exp $ # #*********************************************************************** for jar in lib/*.jar do # make sure CLASSPATH is defined before we reference it if [ -z "$CLASSPATH" ] then CLASSPATH=.:$jar else CLASSPATH=$jar:$CLASSPATH fi done export CLASSPATH #************************************** # R specific variables & compilations # #************************************** CurrDIR=`pwd` echo ${CurrDIR} # Try to auto detect libjri.so file, if not found then try compiling. # This ensures the same libs are not compiled every time MeV is run if [ -a ${CurrDIR}/lib/libjri.so ] then echo "${CurrDIR}/lib/libjri.so exists" else echo "Attempting to build jri Library" ./makejrilib.sh if [ $? -ne 0 ] then echo "ERROR generating jri library...Aborting" exit 1;; fi fi # Set RHOME etc R_HOME=/usr/lib/R R_SHARE_DIR=/usr/share/R export R_SHARE_DIR R_INCLUDE_DIR=/usr/include/R export R_INCLUDE_DIR # For R shared libs PATH=${PATH}:${R_HOME}/bin:${R_HOME}/lib JRI_LD_PATH=${CurrDIR}/lib:${R_HOME}/lib if test -z "$LD_LIBRARY_PATH"; then LD_LIBRARY_PATH=$JRI_LD_PATH else LD_LIBRARY_PATH=$JRI_LD_PATH:$LD_LIBRARY_PATH fi export R_HOME # echo R HOME: ${R_HOME} export LD_LIBRARY_PATH # echo LD LIBRARY PATH: ${LD_LIBRARY_PATH} export PATH java -Djava.library.path=lib -Xss1M -Xmx1024m -cp $CLASSPATH org.tigr.microarray.mev.TMEV
These are my specifications:
Thanks a lot for any help. I'm new in the whole Unix/Linux world, but it is really fascinating. Unfortunately is script debugging a bit difficult at the moment.Code:Linux ruben-acer-6935 2.6.38-12-generic #51-Ubuntu SMP Wed Sep 28 14:25:20 UTC 2011 i686 i686 i386 GNU/Linux
Grts,
R
- 11-11-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
go to line 50 and remove the second semi-colon (or both - they're not necessary)
- 11-11-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 2
It worked! Thanks a lot. Feel bit stupid, because I should have been able to figure this out myself.
- 11-11-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
hey, man, everybody is a scripting n00b at some point. beauty is, shell scripting is easy to master (if you stick w/it), and once you do, it will carry you far in the world of Linux.


Reply With Quote