Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 690  / 2 Years ago, fri, june 3, 2022, 2:16:16

I don't have any experience writing .sh files. I want to run the pvm2raw utility of this app from the Volume Library.



I get the following error when running build.sh in Ubuntu 10.10.



enter image description here



build.sh is as follows:
# make command
set mmfile=V3Makefile
set make="make -f $mmfile"



set rule=$1
if ($rule == "") set rule="all" // line 16

if ($rule == "deps") then
if ($HOSTTYPE == "iris4d") $make MAKEDEPEND="CC -M" OPTS="-DHAVE_CONFIG_H -DVIEWER_HAVE_DCMTK" TARGET=IRIX depend
if ($HOSTTYPE == "i386") $make MAKEDEPEND="c++ -M -I/usr/X11R6/include" OPTS="-DHAVE_CONFIG_H -DVIEWER_HAVE_DCMTK" TARGET=LINUX depend


What's wrong there?



Edit: I followed kniwor's advice and installed csh. Now I get the following error:



enter image description here



How can I solve this Undefined variable problem?


More From » scripts

 Answers
3

That looks like a c-shell script. Use



sudo apt-get install csh


and then try running the script in the c-shell. You can open the c-shell by running csh from the bash shell.


[#40451] Friday, June 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
guialk

Total Points: 300
Total Questions: 144
Total Answers: 121

Location: Saint Vincent and the Grenadines
Member since Sat, Sep 11, 2021
3 Years ago
;