error while running configure on the current trunk on ubuntu

For all the help you need with Armagetron!
Post Reply
User avatar
voodoo
Core Dumper
Posts: 124
Joined: Wed Sep 27, 2006 11:51 am

error while running configure on the current trunk on ubuntu

Post by voodoo »

Hi all,

I'm stucked trying to compile the trunk. I run the bootstrap.sh shell. Then, the configure script returns me a error about xml2 library :
checking for xmlParseMemory in -lxml2... no
configure: error: You need the library xml2 to compile Armagetron. Read the file doc/install_linux.html.
The lib and dev packages are both installed. The problem is that I don't have this message with the 0.3.0 source package from download pages ...
the libs are in /usr/lib.
the xml2-config works fine :
voodoo:~/armad/armagetronad-0.3.0$ xml2-config --libs
-L/usr/lib -lxml2
Any idea ? Thx by advance...
User avatar
Z-Man
God & Project Admin
Posts: 11770
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Could you send the config.log the failed attepmt produced? And the complete output of the ./bootstrap.sh ; ./configure sequence? And the produced configure script to compare with the one that is generated here? It's strange behavior all right :)
User avatar
voodoo
Core Dumper
Posts: 124
Joined: Wed Sep 27, 2006 11:51 am

Post by voodoo »

Here they are ...
Attachments
logs.tar.gz
(84.69 KiB) Downloaded 251 times
User avatar
Z-Man
God & Project Admin
Posts: 11770
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Ah, rather obscurely hidden error :) You don't have ruby installed. It's required currently for trunk compilation, but apparently, there is no check done whether it is on the system.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6715
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Stealth compile failure :).
Image
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Code: Select all

checking for ruby... ruby
and

Code: Select all

configure:5788: checking for ruby
configure:5804: found /usr/bin/ruby
but

Code: Select all

/usr/bin/ld: cannot find -lruby
Odd.
User avatar
voodoo
Core Dumper
Posts: 124
Joined: Wed Sep 27, 2006 11:51 am

Post by voodoo »

Actually I have Ruby 1.8 installed (std and dev packages)... :?:
User avatar
voodoo
Core Dumper
Posts: 124
Joined: Wed Sep 27, 2006 11:51 am

Post by voodoo »

Ok, I got it. For some reason, there's no symbolic link for libruby.so (only with version included in the name). I add that missing link and it's fine now ...
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

voodoo wrote:Ok, I got it. For some reason, there's no symbolic link for libruby.so (only with version included in the name). I add that missing link and it's fine now ...
We should probably being doing something like:

Code: Select all

link_ruby = $(ruby -rrbconfig <<EOF
print Config::CONFIG["LIBRUBY"]
EOF)
export LDFLAGS = "${LDFLAGS} -l${link_ruby}"
Not tested yet, though.
Post Reply