Technology Get the latest on technology, electronics and software…

Linux Question

Thread Tools
 
Old Oct 4, 2004 | 11:08 PM
  #1  
VijaySinghisKing's Avatar
Thread Starter
Instructor
 
Joined: Sep 2004
Posts: 130
Likes: 0
From: Everywhere
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!
Reply
Old Oct 5, 2004 | 12:53 AM
  #2  
bkknight369's Avatar
Safety Car
20 Year Member
Liked
Loved
 
Joined: Jan 2002
Posts: 4,001
Likes: 17
From: Renton, WA
run a jscript? you can execute shell commands through it (though not entirely sure if you can run it on linux)
Reply
Old Oct 5, 2004 | 05:54 AM
  #3  
99gixxer's Avatar
Instructor
 
Joined: Apr 2002
Posts: 123
Likes: 0
From: MA
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...
Reply
Old Oct 5, 2004 | 07:24 AM
  #4  
SiGGy's Avatar
Moderator Alumnus
 
Joined: Dec 2001
Posts: 9,263
Likes: 2
From: Lenexa, KS
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.
Reply
Old Oct 5, 2004 | 07:38 AM
  #5  
Scrib's Avatar
Administrator Alumnus
 
Joined: Oct 2001
Posts: 26,326
Likes: 131
From: Northwest IN
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.
Reply
Old Oct 5, 2004 | 07:48 AM
  #6  
VijaySinghisKing's Avatar
Thread Starter
Instructor
 
Joined: Sep 2004
Posts: 130
Likes: 0
From: Everywhere
Thanks All,

I'm really new to linux, etc... I did a search on the internet and couldn't find anything. Any recommendations on a good book?
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ttimberlak443
3G TL Tires, Wheels & Suspension
21
Oct 22, 2016 10:23 PM
navtool.com
3G MDX (2014-2020)
32
Jan 20, 2016 11:43 AM
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




All times are GMT -5. The time now is 03:59 PM.