LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is my libxml2 2.9.2 buggy? (https://www.linuxquestions.org/questions/linux-newbie-8/is-my-libxml2-2-9-2-buggy-4175556355/)

Gregg Bell 10-16-2015 12:31 PM

Is my libxml2 2.9.2 buggy?
 
I was having problems using the editing software Sigil. I've used Sigil for years and never had a problem. But with Xubuntu 15.04 I'm suddenly having problems. Specifically, Sigil doesn't split chapters properly and it doubles non-breaking spaces (nbsps). I was in a Sigil forum and someone told me to run this command.

Code:

gregg@LG:~/Desktop$ cd /usr/lib
gregg@LG:/usr/lib$ find ./ -name "libxml2*"
./i386-linux-gnu/libxml2.so.2.9.2
./i386-linux-gnu/libxml2.so.2
./x86_64-linux-gnu/libxml2.so.2.9.2
./x86_64-linux-gnu/libxml2.so.2
./x86_64-linux-gnu/girepository-1.0/libxml2-2.0.typelib
gregg@LG:/usr/lib$

And then gave me this analysis.

To make matters worse, Qt XML libraries are linked to your external libxm2 so my fear is that it is not a buggy version so much as it is a mismatch between the version the source of QXml in Qt was built for and the version on the person's system.

I certainly hope libxml2 2.9.2 has not put back in broken behaviour just because someone else called it a reversion!


Being a newbie I'm not really able to interpret his analysis or know if there is anything I can do to correct the situation.

This is not a killer problem and I can use workarounds to get my work done on Sigil but it would be nice to fix the problem if it's possible.

Thanks.

ondoho 10-18-2015 02:32 AM

i don't use sigil.
i guess that guy from the forums just wanted to know your libxml2 version - i have the same:
Code:

find -name 'libxml2*'
./libxml2.so.2.9.2
./libxml2.so.2
./python2.7/site-packages/libxml2.py
./python2.7/site-packages/libxml2mod.so
./libxml2.so
./cmake/libxml2
./cmake/libxml2/libxml2-config.cmake
./girepository-1.0/libxml2-2.0.typelib

i use xmllint in my weather conky and it works, and has worked for a while.
that forum poster is probably right to point out how qt links to libxml, but i have no ideas of the implications.

brainstorming:

- open a terminal, type "xml" and press Tab twice.

- try a different version of sigil? at least on archlinux, i have the choice between the git version (AUR) and the community version.

- check out issues (both open and solved) on sigil's github pages

jdkaye 10-18-2015 03:24 AM

I also have the same versions of libxml2 on my Debian Testing box. One thing I noticed is that the version offered on Debian Testing is 0.8.7+dfsg-3. The version offered on my Ubuntu 14.04 laptop is 0.8.0+git20141005.15009369-0ubuntu0~sunab~trusty1. What version do you have on 15.04? Do you have anything that we can test sigil with? a chunk from a epub document that shows the two problems you mention in your post?
jdk

Gregg Bell 10-19-2015 12:31 PM

Quote:

Originally Posted by ondoho (Post 5436236)
i don't use sigil.
i guess that guy from the forums just wanted to know your libxml2 version - i have the same:
Code:

find -name 'libxml2*'
./libxml2.so.2.9.2
./libxml2.so.2
./python2.7/site-packages/libxml2.py
./python2.7/site-packages/libxml2mod.so
./libxml2.so
./cmake/libxml2
./cmake/libxml2/libxml2-config.cmake
./girepository-1.0/libxml2-2.0.typelib

i use xmllint in my weather conky and it works, and has worked for a while.
that forum poster is probably right to point out how qt links to libxml, but i have no ideas of the implications.

brainstorming:

- open a terminal, type "xml" and press Tab twice.

- try a different version of sigil? at least on archlinux, i have the choice between the git version (AUR) and the community version.

- check out issues (both open and solved) on sigil's github pages

Thanks ondoho. Someone in the Sigil forum gave me a file (libxml2.so.2_x64) that I can put in my Sigil directory that should take care of it. (Turns out other people were having the same issue.) Appreciate you responding.

Gregg Bell 10-19-2015 12:34 PM

Quote:

Originally Posted by jdkaye (Post 5436259)
I also have the same versions of libxml2 on my Debian Testing box. One thing I noticed is that the version offered on Debian Testing is 0.8.7+dfsg-3. The version offered on my Ubuntu 14.04 laptop is 0.8.0+git20141005.15009369-0ubuntu0~sunab~trusty1. What version do you have on 15.04? Do you have anything that we can test sigil with? a chunk from a epub document that shows the two problems you mention in your post?
jdk

Thanks LZM. Other people were having the same problem and one of the Sigil guys gave me a file (libxml2.so.2_x64) to put in my Sigil directory that should take care of the problem. Phew! Thanks for the info but I'm glad I don't have to get too deep into this one. Appreciate it.

jdkaye 10-19-2015 01:21 PM

Quote:

Originally Posted by Gregg Bell (Post 5436980)
Thanks LZM. Other people were having the same problem and one of the Sigil guys gave me a file (libxml2.so.2_x64) to put in my Sigil directory that should take care of the problem. Phew! Thanks for the info but I'm glad I don't have to get too deep into this one. Appreciate it.

That's good news. And have you tried out the libxml2.so.2_x64 file and does it fix your problem? Is libxml2.so.2_x64 really the file name? I have the libxml2.so.2 but I have nothing called libxml2.so.2_x64. My libxml2.so.2 is in the /usr/lib/x86_64-linux-gnu/ folder as well as the libreoffice and calibre folders.
jdk

Gregg Bell 10-21-2015 10:26 PM

Quote:

Originally Posted by jdkaye (Post 5437013)
That's good news. And have you tried out the libxml2.so.2_x64 file and does it fix your problem? Is libxml2.so.2_x64 really the file name? I have the libxml2.so.2 but I have nothing called libxml2.so.2_x64. My libxml2.so.2 is in the /usr/lib/x86_64-linux-gnu/ folder as well as the libreoffice and calibre folders.
jdk

Haven't tried the file yet, LZM. There was some issue as to how difficult it might be to install (and some guy gave me a terminal way of doing it) and since I don't need it for a while I put it off. This is the exact file name.

Code:

libxml2.so.2_x64


All times are GMT -5. The time now is 10:30 AM.