LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling a program from source. (https://www.linuxquestions.org/questions/slackware-14/compiling-a-program-from-source-97763/)

Tarts 09-28-2003 03:47 AM

Compiling a program from source.
 
Hello!
I am trying to compile 'GKrellM-2.1.19', and get error's in the process, the error's are:

Code:

[Mirrus][root][03:05:09][/miss/gkrellm-2.1.19][#] make
(cd po && make all)
make[1]: Entering directory `/miss/gkrellm-2.1.19/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/miss/gkrellm-2.1.19/po'
(cd src && make gkrellm)
make[1]: Entering directory `/miss/gkrellm-2.1.19/src'
cc -Wall -02 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0' -DENABLE_NLS _DLOCALEDIR=\"/usr/local/share/locale\" -c -o main.o main.c
/bin/sh: pkg-config: command not found
In file included from main.c:22:
gkrellm.h:30: gtk/gtk.h: No such file or directory
In file included form main.c:24:
gkrellm-sysdeps.h:64: parse error
make[1]: *** [main.0] Error1
make[1]: Leaving directory `/miss/gkrellm-2.1.19/src'
make: *** [all] Error 2
[Mirrus][root]03:06:12][/miss/gkrellm-2.1.19][#]

As you can see i ran it once, then again out of frustration. Any one have idea of what need to be accomplished to get this installed by what's above, i would be most appreaciative.

Tarts.

Tarts 09-28-2003 04:50 AM

On a SWAG (scientific wild ass guess), i downloaded and installed a program called 'pkg-config'. Now all i need is 'gtk-2.0', i did a google Linux style and i found were reference's to it, but nowhere to download such thing's, anyone know where to get 'gtk-2.0'?

Thank you.

Cerbere 09-28-2003 05:26 AM

Slack 9 has gtk 2.2.1 included. Maybe it's time to upgrade.

Enjoy!
--- Cerbere

Tarts 09-28-2003 06:45 AM

Umm no that's not in the card's.:rolleyes:

Hangdog42 09-28-2003 08:19 AM

Have you tried adding a precompiled version of gkrellm? You can get them from LinuxPackages.net

You also might have to go with an older version of gkrellm.

Locura 09-28-2003 08:22 AM

A precompiled version won't work if he doesn't have GTK+ 2

Just download and install it, you can get it at http://www.gtk.org

Tarts 09-28-2003 08:54 AM

Quote:

Originally posted by Locura
A precompiled version won't work if he doesn't have GTK+ 2

Just download and install it, you can get it at http://www.gtk.org

I just tryed that, it then looked for 'gtk+-2.0.pc' so i added it to the search path, now it can't find something called 'pangoxft.pc' in an attempt to add that to the search path as we'll, i discovered it doesn't exist...:confused:

Cerbere 09-28-2003 04:55 PM

I think that's in Slack 9, too ;-)

Enjoy!
--- Cerbere

Tarts 09-28-2003 05:22 PM

Quote:

Originally posted by Cerbere
I think that's in Slack 9, too ;-)

Enjoy!
--- Cerbere

The reason i can't upgrade is because i'm dial-up, the reason i can't buy the disk's is because i don't have any fund's.

Everything is installed as per Hangdog's post. I took a crash course in making package's just to install them with 'installpkg', i'm proud of myself, but now it need's a library:

Code:

gkrellm: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Let me recap, I get the package's from the site in post #5 'gkrellm 2.1.19', I make everything included a package with 'makepkg', I install with 'installpkg'...

Hangdog42 09-28-2003 07:24 PM

Quote:

Let me recap, I get the package's from the site in post #5 'gkrellm 2.1.19', I make everything included a package with 'makepkg', I install with 'installpkg'...
You shouldn't have to do the makepkg step if you got it from linuxpacakges.net. Installpkg should be the only thing you need to do.

The fundamental problem is that Slack 8.1 doesn't come with GTK2, which gkrellm2 needs, so no matter how you install gkrellm2, unless you also install GTK2, it isn't going to work.

So your option are
1) Download and install GTK 2 or
2) download and install GKrellM 1.2 which should be compatible with Slack 8.1

Kovacs 09-28-2003 08:27 PM

Quote:

Originally posted by Tarts
The reason i can't upgrade is because i'm dial-up, the reason i can't buy the disk's is because i don't have any fund's.
There are tons of places you can buy burnt CDs for $5 or so, highly recommended.

Tarts 09-29-2003 07:40 AM

Quote:

Originally posted by Hangdog42
You shouldn't have to do the makepkg step if you got it from linuxpacakges.net. Installpkg should be the only thing you need to do.

The fundamental problem is that Slack 8.1 doesn't come with GTK2, which gkrellm2 needs, so no matter how you install gkrellm2, unless you also install GTK2, it isn't going to work.

So your option are
1) Download and install GTK 2 or
2) download and install GKrellM 1.2 which should be compatible with Slack 8.1

That did it Hangdog, GKrellM 1.2 was perfect! My thank's go out to everyone who posted to to this thread:

Hangdog
Kovacs
Cerbere :rolleyes: :)
Locura

I woke up at 4:00am this morning, and found had to reinstall Slack 8.1, I had lost 'find', program's that run from 'installpkg', i lost 'pkgtool' etc..
in my playing i had lost these, and slack allowed me to. :)

All is we'll not, GKrellM installed, and it's all due to the help i received here. Thank's!


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