LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-25-2009, 04:58 PM   #1
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
how to compile apt from source?


Hi,

So I am trying to get apt (the real apt) to work on Slackware, and everything seems to be going fine. I successfully installed dpkg with no trouble, but when I come to install the apt client, the configure and make go well, but I don't know how to install it. Normally it's make install, but it doesn't work here. Does anyone know how to install it once it's compiled?

Code:
root@brian-linux:/home/brian/Desktop/apt-get/apt-0.7.20.2# make install
make: *** No rule to make target `install'.  Stop.

thanks,
rabbit2345
 
Old 04-25-2009, 06:12 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
When you come accross this sort of problem, there's a few good steps to take:

(1) Look in Makefile for the string "install". See if it is actually a defined targed. If it is not, you probably needed to pass some flag to ./configure and forgot to. Or, maybe (read: almost 0% chance) there is a nonstandard install target.
(2) Read the INSTALL and README files.
(3) Post here. :-)

If (1) and (2) don't solve your problems, you can always manually setup the install. make install usually just moved the binary into /usr/bin and any libs into /usr/lib, setups sym links as appropriate etc. However, I would imagine apt has a bit more complicated install since it's sort of A Big Deal(tm).
 
Old 04-25-2009, 08:56 PM   #3
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
ok, So I went back to take a closer look at ./configure, and I see that it is not setting one of its variables properly. Configure apperaas to also be missing one of its files.

the first message about dot is:
Code:
checking for dot... NO
checking for dot... no
dirname: missing operand
Try `dirname --help' for more information.
What is this "dot" program? I think the script doesn't know it's missing, and it fails to set the variable.

The second error is:
Code:
checking for shared library run path origin... /bin/sh: buildlib/config.rpath: No such file or directory
done
The file doesn't even exist after running configure, I'm not sure what to do about this.


I think installing "dot" would fix the first one, and possibly the second since they are linked together.

thanks,
rabbit2345
 
Old 04-25-2009, 09:09 PM   #4
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Hey rabbit, I'm not really sure, but I would think that dot is referring to "dot.conf - A ConfigurationFile Parser Library"

see http://www.azzit.de/dotconf/ . But again, I'm not really sure.

Google says Graphviz has a legitimate "dot" application, but it makes less sense to me why that package would be needed for this. http://www.graphviz.org/

(There is no package in the Ubuntu repos (all branches) called simply "dot", btw.)

Last edited by jhwilliams; 04-25-2009 at 09:11 PM.
 
Old 04-25-2009, 10:21 PM   #5
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
I think I have a solution to this.

But I do need to know where the dpkg database for packages is. I don't need repo information, just installed packages. I think I can just install apt with dpkg, but I need to convert the pkgtool database into dpkg.

Or do you think it would be easier to just switch to Debian?

Last edited by rabbit2345; 04-25-2009 at 10:39 PM.
 
Old 04-25-2009, 11:33 PM   #6
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
For me, anyway, that'd probably be enough to move to Debian. You get l33t points if you can functionally use slack for sure, but you get to keep most of them moving over to Debian, anyway. Is there anything keeping you on slack? I moved from redhat/fedora to debian a few years ago and found the transition quite smooth.
 
Old 04-26-2009, 08:04 PM   #7
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
Yeah, there's really nothing keeping me on Slackware, I'm going to move to Debian. I just wanted to see if I could take Slackware, but I think I'll go with something a little less intense. I heard Slackware was quite hard to manage. Thanks for your help anyway.


rabbit2345
 
  


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
How to compile and install programs so that they are known as installed by APT? 10110111 Ubuntu 3 04-02-2009 08:20 AM
in DSL on HDD, compile from sources as apt-get is too risky? stabu DamnSmallLinux 1 04-14-2007 01:25 PM
Compile php after apt-getting it spudse Linux - Software 2 05-04-2006 12:34 AM
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
what is the best source to put on apt-get source list j.vilon Debian 3 09-28-2004 08:49 PM

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

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