Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-03-2003, 01:50 PM
|
#1
|
Member
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225
Rep:
|
make install question (for slackware pagkages)
I am trying to compile a program and then make it install to a temporary directory. I am then going to make that directory into a slackware install package (which requires. However, the program I am compiling said I could install to a separate directory by sending a prefix='/my/path' to the ./configure script. However, this also makes a bunch of hardcodes in that program for libraries. So, when I actually install the program from the slack package I made, the libraries aren't in the right place.
Therefore, I need a way to make `make install` install to a different directory than root. I tried to use chroot, but I guess that changes everything because when I did that bash couldn't find `make` and gave me an error.
This really can't be that difficult, what do I do?
thanks.
|
|
|
09-03-2003, 01:56 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374
Rep:
|
do this:
./configure --prefix=/usr # This will configure it so that everything goes to /usr (just wait I understand your question)
then do a make to build everything
now here is where the question is answered
make install DESTDIR=/the/temporrary/directory/you/want
there you go :-P then do the slackware packager (This method works for 70-85% of all sources)
|
|
|
09-03-2003, 02:05 PM
|
#3
|
Member
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225
Original Poster
Rep:
|
thanks! It worked.
|
|
|
09-03-2003, 02:47 PM
|
#4
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
I don't know if this would meet your needs as well, but checkinstall creates a Slackware package (or Debian package or RPM) and then installs the software. Basically, checkinstall is a replacement for the make install step and leaves you with a distributable package as well as installed software.
|
|
|
09-03-2003, 03:12 PM
|
#5
|
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374
Rep:
|
on a side noteI am making a program similar to checkinstall, but while checkinstall only does the configure/make system of install (or at least that is all I could find) mine has the ability to do sources that use configure, bootstrap, autogen, makefile makefile in subdirectory, configure or auto, etc in subdirectory, copy pre-build binaries libraries and so on, plus perl python, install.sh and even binary codecs for things like mplayer, thenit also has a section for application specific options, and it is all automatic, give it a directory full of tarballs and it will go for it. go to sourceforge and lookup exmmpkg, it is not uploaded yet, but will be ain a few days, I have tgz slack packages working, it will however have its own package system redhat and debian support.
|
|
|
All times are GMT -5. The time now is 11:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|