- Index
- » Developer
- » OpenModelica development
- » Nightly builds don't work on Ubuntu...
Nightly builds don't work on Ubuntu 11-04 (64bit)
Nightly builds don't work on Ubuntu 11-04 (64bit)
Simulating any model (e.g. with OMShell) on a Ubuntu 11-04 (64 bit) system leads to the error
/usr/bin/ld: cannot find -lexpat
The expat library is properly installed (checked with ldconfig).
This happens with 9705-1 (nightly-ubuntu) and older versions. 9040-1 (stable) works though.
Greetings
Peter
Re: Nightly builds don't work on Ubuntu 11-04 (64bit)
Does the following work?
Code:
echo "int main() {return 0;}" | gcc -x c - -lexpat
And what does the following return?
Code:
$ locate libexpat.so
- sjoelund.se
- 1700 Posts
Re: Nightly builds don't work on Ubuntu 11-04 (64bit)
Confusing results (for me):
Code:
> echo "int main() {return 0;}" | gcc -x c - -lexpat
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
and
Code:
> locate libexpat.so
/daten/local/prog/matlab2011a/bin/glnxa64/libexpat.so.1
/daten/local/prog/matlab2011a/bin/glnxa64/libexpat.so.1.5.0
/lib/x86_64-linux-gnu/libexpat.so.1
/lib/x86_64-linux-gnu/libexpat.so.1.5.2
/lib32/libexpat.so
/lib32/libexpat.so.1
/lib32/libexpat.so.1.5.2
/usr/lib/vmware/lib/libexpat.so.0
/usr/lib/vmware/lib/libexpat.so.0/libexpat.so.0
/usr/lib/vmware/ovftool/libexpat.so.0
/usr/lib/vmware-installer/1.1/lib/lib/libexpat.so.0
/usr/lib/vmware-installer/1.1/lib/lib/libexpat.so.0/libexpat.so.0
and finally
Code:
# ldconfig -v | grep expat
/sbin/ldconfig.real: Pfad »/lib/x86_64-linux-gnu« mehrfach angegeben
/sbin/ldconfig.real: Pfad »/usr/lib/x86_64-linux-gnu« mehrfach angegeben
libexpat.so.1 -> libexpat.so.1.5.2
libexpatw.so.1 -> libexpatw.so.1.5.2
libexpat.so.1 -> libexpat.so.1.5.2
libexpatw.so.1 -> libexpatw.so.1.5.2
Re: Nightly builds don't work on Ubuntu 11-04 (64bit)
So your system is similar to mine, then.
Code:
/home/marsj/matlab2009/bin/glnxa64/libexpat.so.1
/home/marsj/matlab2009/bin/glnxa64/libexpat.so.1.5.0
/home/marsj/matlab2009/toolbox/symbolic/mupad/glnxa64/lib/libexpat.so.1.0.0
/lib/x86_64-linux-gnu/libexpat.so.1
/lib/x86_64-linux-gnu/libexpat.so.1.5.2
/lib32/libexpat.so
/lib32/libexpat.so.1
/lib32/libexpat.so.1.5.2
/usr/lib/x86_64-linux-gnu/libexpat.so
The main difference seems to be /usr/lib/x86_64-linux-gnu/libexpat.so which is in your cache but not in locate?
- sjoelund.se
- 1700 Posts
Re: Nightly builds don't work on Ubuntu 11-04 (64bit)
Ok, everything works now! The problem was: One has to install the dev package of libexpat as well to get the correct links. This is probably a bug in expat, but who cares. Now the daily build works for me. And this makes bug #1599 obsolete - everything works fine.
Thanks for your fast help.
Peter
Re: Nightly builds don't work on Ubuntu 11-04 (64bit)
Thanks; I'll add this as an additional dependency in the build (debhelper usually finds these automatically, but apparently expat was a problem as you say).
- sjoelund.se
- 1700 Posts
- Index
- » Developer
- » OpenModelica development
- » Nightly builds don't work on Ubuntu...