This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Tell Debian I have installed App by building from source, How to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Tell Debian I have installed App by building from source, How to?" Watch "Tell Debian I have installed App by building from source, How to?" New topic
Author

Tell Debian I have installed App by building from source, How to?

Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

I have fetched, tweaked and built source of a particular app in my Debian box. It installs itself in /usr/local, but I can get it to install elsewhere. My question is, how do I tell dpkg that I have done so? In terms of dependencies or requirements, how do downstream and upstream apps know that I have installed a particular version of the app?

thank you for any insights,
- Anand


"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

I think you can't. At least not without building a proper package and have dpkg install it, so that the dependancies and state are properly stored.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

I'm afraid most of my expertise is in RPMs, which are Red Hat, not Debian/Ubuntu dpkgs. But I think there's an "alternate installation" parameter on dpkg to indicate that a different install root than "/" has been selected. You'd probably have to adjust your PATH, however.


Customer surveys are for companies who didn't pay proper attention to begin with.
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

Thank you, Tim. Your response gave me something to Google for (viz., "dpkg alternate installation"), and while I haven't gotten answers yet, I have something to read and find out:

http://www.debian.org/doc/manuals/debian-reference/ch02.en.html
http://linux.die.net/man/5/apt_preferences


sincerely,
- Anand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tell Debian I have installed App by building from source, How to?
 
Similar Threads
Installing OpenOffice in Ubuntu
Yahoo Instant Messenger on Suse
where to placed shared library on jboss-3.2.5
Linux home server setup
Eclipse on Debian