?

Log in

No account? Create an account
Building LogJam from source on Mandrake 9.2 - LogJam [entries|archive|friends|userinfo]
LogJam

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Building LogJam from source on Mandrake 9.2 [Jan. 23rd, 2004|02:40 am]
LogJam

logjam

[redgreenblue]
Has anyone had any luck building LogJam from source on Mandrake 9.2?

Note: I'm far from being a Linux expert. Assume I'm a bloody idiot. :-P

EDIT: Output when compiling:

[root@prometheus logjam-4.2.4]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mingw... no
checking for pkg-config... /usr/bin/pkg-config
checking for gtkspell-2.0... not found
checking for libgtkhtml-3.0... not found
checking for librsvg-2.0 > 2.2.3... not found
checking for gtk+-2.0 gmodule-2.0 libxml-2.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0 gmodule-2.0 libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
LinkReply

Comments:
[User Picture]From: sohmc
2004-01-23 03:28 am (UTC)
what errors are you getting?
(Reply) (Thread)
[User Picture]From: redgreenblue
2004-01-23 01:16 pm (UTC)
Guess I should've included that in my original post. Whoops.

[root@prometheus logjam-4.2.4]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mingw... no
checking for pkg-config... /usr/bin/pkg-config
checking for gtkspell-2.0... not found
checking for libgtkhtml-3.0... not found
checking for librsvg-2.0 > 2.2.3... not found
checking for gtk+-2.0 gmodule-2.0 libxml-2.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0 gmodule-2.0 libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


I've had luck installing LogJam from RPM while running Fedora Core, but then I didn't like Fedora Core all that much. And since there are no RPMs for Mandrake, I figured building from source was my best option. Unfortunately, I haven't had much experience building anything from source, but I thought that LogJam would be relatively easy.

I know the first thing I need to do is resolve the dependencies, but I don't even know where to begin. (By the way, I want to build LogJam with all the optional features, if possible.)
(Reply) (Parent) (Thread)
From: (Anonymous)
2004-01-24 02:23 am (UTC)

use the following

man urpmi
figure out if it has a search feature. if so, search for gtk, i'm SURE mandrake has gtk+/gtk2 support. you're probably looking for -devel rpms if they follow the fucked up redhat convention
(Reply) (Parent) (Thread)
[User Picture]From: sohmc
2004-01-24 04:02 am (UTC)

Re: use the following

the GTK devel packages are for those users that want to *create* their own widgets. I've been fine with just the gtk2 standard libraries.
(Reply) (Parent) (Thread)
[User Picture]From: sohmc
2004-01-24 04:00 am (UTC)

build lesson: 101

Dude, it's okay man. I've been there. Linux is a learning process and has a slow curve. I'll try to walk you through it.

From the looks of your error, ./configure can't find your gtk+-2.0 libraries. Try:
`locate gtk+-2.0.pc`

This command *should* try to find the file that tells ./configure where to find gtk. For more info, man pkg-config

If you get nothing back, it means you'll need to install GTK+-2.0 either by source or by some pre-compiled package. If you don't have much experience compiling code, I would NOT recommend compiling GTK from source. It took me at least 2 days to find all the dependencies, configure them correctly, and install them. Look hard on www.gtk.org or your favorite package site (apt-get and yum come to mind). GTK is a very popular project and I'm sure someone has a RPM or similar for it. (I'm actually surprised that your distro didn't come with GTK-2)

Once you've completely installed GTK, you'll need to resolve the other dependencies: gmodule-2.0 libxml-2.0

Follow the same procedure for these. libxml should be fairly easy to install.

After you do these, ./configure again. hopefully, it will configure correctly and you'll be able to make, make install.

Hang in there! Linux can be tough...compiling your own programs does take practice and experience. You're not alone! Feel free to e-mail me (or post again here) if you continue to have problems.

I'm willing and able to help anyone cross over to the Good Dark Side...non-microsoft side...yeah. :-)
(Reply) (Parent) (Thread)
[User Picture]From: redgreenblue
2004-01-24 06:03 pm (UTC)

Re: build lesson: 101

It turns out that I needed "-devel" versions of all the libraries. Running urmpi took care of that. Thanks so much for your help!
(Reply) (Parent) (Thread)