LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what is the default package data dir? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-default-package-data-dir-169012/)

cheesetastic 04-11-2004 11:32 PM

what is the default package data dir?
 
Ive been playing around with lin and installed me first package for gtk-gnutella 0.92.1c

did

make install /root/Des....

was fine

wanted to install another ap using diff shit, ulstimatly got this

bash-2.05b# make install /root/Desktop/mldonkey-2.5.9/
cd /root/Desktop/gtk-gnutella-0.92.1c && /root/Desktop/gtk-gnutella-0.92.1c/missing automake-1.4 --gnu Makefile
/bin/sh: line 1: cd: /root/Desktop/gtk-gnutella-0.92.1c: No such file or directory
make: *** [/root/Desktop/gtk-gnutella-0.92.1c/Makefile.in] Error 1

i said wtf???? why would it even be looking at gnutella make shit???

after pissing about for the next 5 min i finaly figured at some point it compiled or swaped my default config.h file in meh root dir. Is this normal? Did i fuck something up or is that gnutella client a twit?

finaly located the most probible source of all my problems in the config.h file

/* Define which directory should be used for package data. */
#define PACKAGE_DATA_DIR "/usr/local/share/gtk-gnutella"

I started shouting @ screen at this point

can somebody please tell me the default package data dir and if i need to do something with the config.h file after i replace this line or just save it? Or am i completly off and just fucking up in general, if so please correct meh newbness.

AutOPSY 04-12-2004 12:24 AM

it appears you do not have the automake package nor the directory to cd to.
are you supposed to have another tgz file with this?
look:
bash-2.05b# make install /root/Desktop/mldonkey-2.5.9/
cd /root/Desktop/gtk-gnutella-0.92.1c && /root/Desktop/gtk-gnutella-0.92.1c/missing automake-1.4 --gnu Makefile
/bin/sh: line 1: cd: /root/Desktop/gtk-gnutella-0.92.1c: No such file or directory
make: *** [/root/Desktop/gtk-gnutella-0.92.1c/Makefile.in] Error 1

AutOPSY 04-12-2004 12:26 AM

oh yeah by the way you did already do a ./configure right?

hypexr 04-12-2004 12:29 AM

Hmmm
 
I have not installed these packages from source, but normally there is a file called configure. I am guessing you want to choose where the package is installed to and I will explain how to do it in a sec.
Normally you do something like this:
Code:

./configure
make
make install

The make install installs the package to the appropriate directories on your system. For example it may install the executable mldonkey file in /usr/bin or perhaps /usr/local/bin.
If you want to change where it is going to install to you can do this by passing information to the configure:
Code:

./configure --prefix=/some_directory/you_choose
for information about what you can pass to configure type:
Code:

./configure --help
It seems that you are installing packages to you desktop for you root user. Are you running Xwindows from root? If so you should consider running it from a user account and install packages to a different directory.

cheesetastic 04-12-2004 12:29 AM

is the automake package supposed to be in the mldonkeu dir? is that what the make install command does? initiate the automake? if so and i do it for mldonkey why doesnt it just give a general error command but give a command relating to a programs automake that has nothing to do with the program im trying to install. and why is

/* Define which directory should be used for package data. */
#define PACKAGE_DATA_DIR "/usr/local/share/gtk-gnutella"

set to nething gnutella related in my main config.h file?

cheesetastic 04-12-2004 12:33 AM

i must be poorly understanding the nix file tree structure ./confogure --help?
please use that in an example, i know it applys to all but i dont know how it would work in an example, please give any for this type of file.

cheesetastic 04-12-2004 12:56 AM

somebody please tell me...

is it ./configure /root/bleh..

how do you run the configure file?

hypexr 04-12-2004 02:23 AM

I just looked at mldonkey source and see that a configure file is there. Example of using configure:
to show options:
./configure --help
to set the directory that it installs the package to
./configure --prefix=/usr/local

so to install mldonkey try:
./configure
make
make install

cheesetastic 04-12-2004 09:34 AM

thank you! thats what i needed, it worked.


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