LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 09-03-2003, 01:50 PM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
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.
 
Old 09-03-2003, 01:56 PM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
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)
 
Old 09-03-2003, 02:05 PM   #3
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
thanks! It worked.
 
Old 09-03-2003, 02:47 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 09-03-2003, 03:12 PM   #5
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
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.
 
  


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
Slackware 10 Install question NecroScumBag Slackware 5 01-21-2005 11:45 AM
question 'bout make / make install bennethos Debian 3 11-02-2004 04:43 AM
ipw2100 install question (how to make it boot) true_atlantis Slackware 1 05-27-2004 03:10 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM
abiword make install question synaptical Linux - Software 2 08-19-2003 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 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