Re: Installing from source
Thanks a lot .
Just one more question. What about cvs? Am I still supposed to make packages first?
---Otgonbayar
On 火, 5 25 1999, Carl Mummert wrote:
Carl> There is a package named 'alien' that can take care of some of this, depending
Carl> on exactly what you are needing to install.
Carl>
Carl>
Carl> What you do is to layout the files in some remote directory, like you
Carl> would want them installed:
Carl>
Carl> /somewhere--etc/file1
Carl> |
Carl> --usr/bin/\file2
Carl> |
Carl> --- and so forth
Carl>
Carl> You can do this automtically with most makefiles by chainging the
Carl> INSTALL_PREFIX or similar variable to point to some remote directory
Carl> that you create for this purpose (then, 'make install' will put the files
Carl> in that remote place.. just go slow.) You can also just build up
Carl> the directories by hand.
Carl>
Carl> Make sure the permissions on all the files are correct.
Carl>
Carl> Then, cd to that remote directory. Notice that, in some sense, it is the
Carl> root directory for your installation. What you will do is to package the
Carl> files in this direcotry; then, when they are installed from the root
Carl> directory, they will fall where they should.
Carl>
Carl> From that remote directory, run 'tar czvf package.tgz'. This will amke
Carl> a file named 'package.tgz' that has all of the files that were in
Carl> your current directory and below. Don't use the name 'package'!
Carl>
Carl> Now run 'alien package.tgz' as root - you will get a package.deb
Carl> file. Now, run dpkg -i pacakge.deb. You cen rm the tgz file and
Carl> the files in the remote directory.
Carl>
Carl> To uninstall, 'dpkg --purge package' will work.
Carl>
Carl>
Carl> Carl
Reply to: