Results 1 to 5 of 5
Hi!
I'm tying to install Root (physics data analysis program) and the installation guide is saying:
#!/bin/bash
ALIEN_ROOT=/afs/cern.ch/alice/library/afs_volumes/vol01/alien
./configure \
--with-pythia6-uscore=SINGLE \
--enable-alien --with-alien-incdir=${ALIEN_ROOT}/api/include \
--with-alien-libdir=${ALIEN_ROOT}/api/lib
Wath do I have ...
- 08-12-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 3
Configuration script
Hi!
I'm tying to install Root (physics data analysis program) and the installation guide is saying:
#!/bin/bash
ALIEN_ROOT=/afs/cern.ch/alice/library/afs_volumes/vol01/alien
./configure \
--with-pythia6-uscore=SINGLE \
--enable-alien --with-alien-incdir=${ALIEN_ROOT}/api/include \
--with-alien-libdir=${ALIEN_ROOT}/api/lib
Wath do I have to do? Is this #!/bin/bash -ALIEN_ROOT=/afs/cern.ch/alice/library/afs_volumes/vol01/alien commands or do I have to write this in a file? In that case, what file?
Next is says
#!/bin/bash
make
cd test
make
export LD LIBRARY PATH=$LD_LIBRARY_PATH:.
./stress
./stressHepix
what is #!/bin/bash refering to? Is this commands I have to write in my terminal window?
Thanks!
- 08-12-2009 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
The #!/bin/bash is known as the shebang line.
What you have posted implies (to me) that you should enter these commands into a script and run it that why. For the 1st one I'd call it config.sh and do this:
# vi config.sh (and enter the commands by copy/paste)
# chmod 700 config.sh (make the script executable)
# ./config.sh > config.log 2>&1 (run the script redirecting the output to a log file)
# more config.log (review the log for errors)
You'd do the same to the 2nd set of commands.
- 08-12-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 3
Thanks!
I forgot to mention in the previous post that my Root directory (where I have downloaded my root files) has a file called configure. Do you think that I have to write this lines in this file? But the top line in this file is #! /bin/sh.
Or is the best way to make another script like you said, and when I run this script I can call the configure script from my new script config.sh?
What directory shold I put my new script in? The same directory where I found my configure script? I have to go to the directory where my new script is saved when I want to run it with ./config.sh
- 08-13-2009 #4Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
DO NOT edit the 'configure' file. That is a script that sets up files used by the 'make' command that's part of the second set of commands. The './configure' in the config.sh file executes it.
Create these files in the same directory that the 'configure' file is in.
config.sh
makeit.shCode:#!/bin/bash ALIEN_ROOT=/afs/cern.ch/alice/library/afs_volumes/vol01/alien ./configure \ --with-pythia6-uscore=SINGLE \ --enable-alien --with-alien-incdir=${ALIEN_ROOT}/api/include \ --with-alien-libdir=${ALIEN_ROOT}/api/lib
Exeucte config.sh, check the log, and then execute makeit.sh (make sure to 1st make it executable as you did with config.sh).Code:#!/bin/bash make cd test make export LD LIBRARY PATH=$LD_LIBRARY_PATH:. ./stress ./stressHepix
- 08-15-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 3
Thank you for your help!
I have tried to do as you explained, but when I run my config script my log file is showing: Xft headers (libxft-devel) MUST be installed.
I have installed libXft-devel wit yum install libXft-devel and the install was ok, but I still miss some files.
What do I have to install to get the Xft headers?


Reply With Quote