LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to compile apt from source? (https://www.linuxquestions.org/questions/linux-software-2/how-to-compile-apt-from-source-721661/)

rabbit2345 04-25-2009 04:58 PM

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

jhwilliams 04-25-2009 06:12 PM

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).

rabbit2345 04-25-2009 08:56 PM

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

jhwilliams 04-25-2009 09:09 PM

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.)

rabbit2345 04-25-2009 10:21 PM

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?

jhwilliams 04-25-2009 11:33 PM

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.

rabbit2345 04-26-2009 08:04 PM

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


All times are GMT -5. The time now is 11:11 PM.