LightXML Ubuntu 16.04 julia 0.4.5

98 views
Skip to first unread message

Ján Adamčák

unread,
Sep 24, 2016, 5:52:46 AM9/24/16
to julia-users
Hi Guys,

I tried use LightXML on Ubuntu 16.04, but I got an error: 

ERROR: error compiling call: could not load library "libxml2"

Can You help me?

Thanks.

Log:

                 _
  _       _ _(_)_     |  A fresh approach to technical computing
 (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
  _ _   _| |_  __ _   |  Type "?help" for help.
 | | | | | | |/ _` |  |
 | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)
_/ |\__'_|_|_|\__'_|  |  
|__/                   |  x86_64-linux-gnu

julia> Pkg.status()
No packages installed

julia> Pkg.add("LightXML")
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of LightXML from git://github.com/JuliaIO/LightXML.jl.git
INFO: Installing Compat v0.9.2
INFO: Installing LightXML v0.4.0
INFO: Building LightXML
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of LightXML
INFO: Use `Pkg.update()` to get the latest versions of your packages

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> using LightXML
INFO: Precompiling module LightXML...

julia> # create an empty XML document
      xdoc = XMLDocument()
ERROR: error compiling call: could not load library "libxml2"




Kaj Wiik

unread,
Sep 24, 2016, 8:18:27 AM9/24/16
to julia-users
Try

sudo apt install libxml2

Ján Adamčák

unread,
Sep 24, 2016, 8:34:12 AM9/24/16
to julia-users
I tried sudo apt-get install libxml2, but I got answer from ubuntu:

libxml2 is already the newest version (2.9.3+dfsg 1-1ubuntu0.1).
libxml2 is tagged as manually installed.

But from julia I got same answer:


ERROR: error compiling call: could not load library "libxml2"



Dňa sobota, 24. septembra 2016 14:18:27 UTC+2 Kaj Wiik napísal(-a):

Tony Kelman

unread,
Sep 24, 2016, 9:07:37 AM9/24/16
to julia-users
You might need the -dev version to get a plain "libxml2.so" in addition to the version with an soname in it. I thought Julia should be able to find the soname versions too, but maybe not?

Ján Adamčák

unread,
Sep 24, 2016, 9:17:13 AM9/24/16
to julia-users
Thanks,

after installing 

sudo apt-get install libxml2-dev

is LightXML fully working.

I have another question: Why this dependency didn't resolved automatically by Pkg.add("LightXML") ?



Dňa sobota, 24. septembra 2016 15:07:37 UTC+2 Tony Kelman napísal(-a):

Milan Bouchet-Valat

unread,
Sep 25, 2016, 8:15:07 AM9/25/16
to julia...@googlegroups.com
Le samedi 24 septembre 2016 à 06:17 -0700, Ján Adamčák a écrit :
> Thanks,
>
> after installing 
>
> sudo apt-get install libxml2-dev
>
> is LightXML fully working.
Could you file an issue against LightXML.jl? It should be able to
install the package automatically, or could even work without it.


Regards


> I have another question: Why this dependency didn't resolved
> automatically by Pkg.add("LightXML") ?
>
>
>
> > You might need the -dev version to get a plain "libxml2.so" in
> > addition to the version with an soname in it. I thought Julia
> > should be able to find the soname versions too, but maybe not?
> >
> >
> > > I tried sudo apt-get install libxml2, but I got answer from
> > > ubuntu:
> > >
> > > libxml2 is already the newest version (2.9.3+dfsg 1-1ubuntu0.1).
> > > libxml2 is tagged as manually installed.
> > >
> > > But from julia I got same answer:
> > >
> > > ERROR: error compiling call: could not load library "libxml2"
> > >
> > >
> > >
> > > > Try
> > > >
> > > > sudo apt install libxml2
> > > >
> > > >
> > > >
Reply all
Reply to author
Forward
0 new messages