Linux Question
Linux Question
Hi All,
Just wondering if anyone her knew how to write an installation script in linux? I'm using Red Hat 9 and I basically want to unzip a couple of tar.gz files, then ./configure them then make and make install them... anyone know how to write a script to automate this?
Thanks!
Just wondering if anyone her knew how to write an installation script in linux? I'm using Red Hat 9 and I basically want to unzip a couple of tar.gz files, then ./configure them then make and make install them... anyone know how to write a script to automate this?
Thanks!
There are a bunch of ways to do this, since you didn't really say why you are writing a script and not just doing it in the command line, here's the easiest way to do it...
1) Just create a new file and edit it using your favorite editor
2) Enter the commands the same way you would do them on the command line - i.e.
tar -zxvf blah-1.0.tar.gz
cd blah-1.0
./configure
make
make install
cd ..
3) save the file
4) chmod +x file
5) ./file
That should do it...
1) Just create a new file and edit it using your favorite editor
2) Enter the commands the same way you would do them on the command line - i.e.
tar -zxvf blah-1.0.tar.gz
cd blah-1.0
./configure
make
make install
cd ..
3) save the file
4) chmod +x file
5) ./file
That should do it...
best way to automate the configure is like this
./configure && make && make installl
if any of them fail it will exit.
Pretty basic question you just asked, pickup a book on shell programming.
./configure && make && make installl
if any of them fail it will exit.
Pretty basic question you just asked, pickup a book on shell programming.
Originally Posted by SiGGy
best way to automate the configure is like this
./configure && make && make installl
if any of them fail it will exit.
Pretty basic question you just asked, pickup a book on shell programming.
./configure && make && make installl
if any of them fail it will exit.
Pretty basic question you just asked, pickup a book on shell programming.
Thread
Thread Starter
Forum
Replies
Last Post
navtool.com
5G TLX Audio, Bluetooth, Electronics & Navigation
31
Nov 16, 2015 08:30 PM
DerrickW
3G TL Performance Parts & Modifications
9
Nov 15, 2015 05:52 PM





