LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2006, 12:47 AM   #1
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Back to The basics. Newbie to Slackware


Hello Slackers. I would first like to Say Why did I not try slackware first. I love this operating system. However I am however a little confused. I am coming from Fedora Core 3
so I am not very familiar with the tarball approach to installing software.

I have seen some people do
Code:
 ./configure
 make 
 make install
or I have seen the following.
Code:
./configure --prefix=/usr
make 
make install
So which is the proper way to install tarballs and Where do you store the tarballs at.
If I sound confusing I appoligize it's just that as I said I am confused.
 
Old 01-06-2006, 12:50 AM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 68
You CAN do it either way. The advantage to the 'usr' prefix is that it installs under the /usr directory.

Caveat: Some programs installing from source are expecting their programs to install in specific directories. Always, always, always read the README
 
Old 01-06-2006, 01:24 AM   #3
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
yes... README and INSTALL are required reading.

also `./configure --help` will give you a list of
acceptable parameters.

and instead of `make install`, i recommend using
makepkg or checkinstall.
 
Old 01-06-2006, 01:27 AM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 68
DEFINATELY makepkg and chkinstall....keeps the integrity of your Slackware going
 
Old 01-06-2006, 09:59 AM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks for the quick replies.

Thanks for the quick replies. I will definetley be adding those commands to my list I am currently building. I was definetley trying to keep the integrety of Slackware.

Just one more question. Does all programs need to have the ./configure --prefix=/usr. Because most of the README files I have read just want the ./configure.
 
Old 01-06-2006, 11:21 AM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
If you don't set --prefix=/usr, the software will most likely be installed under /usr/local, that's really the only difference, both work just fine. It's more a logical division than functional. I for example prefer to keep my /usr/local for the things that don't come from slackware packages. So if I use checkinstall or makepkg to make a slack package, or use packages from linuxpackages or such, the software goes under /usr. Things installed with make install and the things I've written myself go under /usr/local.

It could also be a good idea to define --sysconfdir=/etc to have system wide configuration files fo under /etc instead of /usr/etc or /usr/local/etc. I find it easier if they are all in one place.
 
Old 01-06-2006, 11:25 AM   #7
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
most of the source software I've installed on Slackware just needed a

Code:
./configure && make && make install
Albeit, it is pretty important to read those readme and install files just to be sure you won't screw up
 
Old 01-06-2006, 11:29 AM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks Aliendog. I have decided that I will probably start installing the packages like this.

Code:
./configure --prefux=/usr --sysconfdir=/etc
make 
checkinstall
Unless otherwise noted by the README or INSTALL files.
 
Old 01-06-2006, 01:41 PM   #9
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Just a typo I'm sure but... --prefix, not --prefux.
 
Old 01-06-2006, 01:50 PM   #10
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks. Brain moved faster than fingers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB DVD - Basics (newbie) danimalz Linux - Hardware 9 11-19-2005 09:41 PM
I can't understand the basics of Linux... (newbiest newbie you've ever newbied) nitroguy Linux - Newbie 11 09-19-2005 09:18 PM
Fedora Newbie - I need some Basics! ChunkIam Fedora - Installation 20 01-27-2005 01:45 AM
NEWBIE: I need the basics of installing a program SRSilvia Linux - Software 3 11-03-2003 07:53 PM
Back To Basics: Hardware on Linux kwixson Linux - Newbie 7 09-25-2003 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration