LinuxQuestions.org
Review your favorite Linux distribution.
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 08-29-2006, 07:41 PM   #1
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Best way to handle installing from source?


I've been using Slackware 9.1 since it came out, and I've installed most of my software from the source code if I couldn't find a Slackware package for it. I've been using the standard ./configure; make; make install. As soon as Slackware 11 is finished, I'm going to install that but I'm not sure how I should handle installing programs from source.

I've been thinking about making all of my programs into packages using something like checkinstall. I've heard checkinstal can cause problems sometimes, and I see that slacktrack is in Slackware's /extra directory, but I don't know much about that program. I also see from another thread on these forums that there's a src2pkg program that might do what I want. Ideally, in addition to having a package for every program (so I can easily list and remove installed programs), it would be nice to be able to control where a program installs. Right now, I have programs distributed seeminly at random among /usr, /usr/games, /usr/local, /usr/local/games, /opt, and who knows where else.

Any thoughts on a good way to manage programs installed from source?

Last edited by 2.718281828; 08-29-2006 at 07:43 PM.
 
Old 08-29-2006, 08:06 PM   #2
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
Hi, welcome to the forum.
Have you tried the tutorials from http://www.linuxpackages.net/howto.php ?
There other threads around, use search... here are some of them:
liquidtenmilion
How do YOU manage software?
another1
Check also http://slackwiki.org/Category:Tutorials
Hope it helps
 
Old 08-29-2006, 08:08 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
makepkg

It's the best and only way IMO.. It would be worth anyones while to learn how to build slackware packages if they use slackware. Study the *.SlackBuild scripts on slackware's ftp site. Really easy and simple.

You don't even have to make scripts if it feels like too much of a waste of time. This is probably the shortest route to building a package.
Code:
./configure --prefix=/usr
make
make install DESTDIR=/tmp/packagename
cd /tmp/packagename
makepkg -l y -c n packagename.tgz
installpkg packagename.tgz
That won't give you a description when you install, stripped binaries and libs, compressed man pages, compressed info pages and some other possible things that are required for a "proper" slackware package, but it still works.

But there are a number of other alternatives, a few of which you've listed already.
 
Old 08-29-2006, 08:12 PM   #4
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
For what it's worth, I use checkinstall and have not had any problems.
For packages I build for my own use, it is great.

I'm not sure I would use it for packages I was making for others, but I have no intention of doing that at this point.

I have heard that it has improved much of late, but I would not know that from experience as i've only been using checkinstall for 6-8 months.

My 2 cents.
 
Old 08-29-2006, 09:31 PM   #5
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for your replies. I'll look into the options everyone mentioned. I don't know how makepkg escaped my notice, and I think I once saw the linuxpackages.net howto that mannyslack mentioned, but that a few was years ago, and I probably thought at the time that I'd never be making my own packages so I didn't read it.

I'm leaning towards using a program that ships with Slackware, since maybe that means it earned Pat's "seal of approval," so I guess that leaves me with makepkg, checkinstall, and slacktrack. Of course, if anyone has any other recommendations, feel free to chime in.
 
  


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
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
Installing from source, installing from CVS and the E-17 window manager... Buffbannana049 Ubuntu 10 02-14-2006 11:27 PM
Open Source program that will handle MSS access 2k databases? rwhunt SUSE / openSUSE 3 12-02-2005 09:58 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
rpmm cant handle source rpm ??? qwijibow Linux - Newbie 3 07-19-2003 10:08 AM

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

All times are GMT -5. The time now is 12:35 PM.

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