LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Emacs 24.4.1 with libxml2 (https://www.linuxquestions.org/questions/linux-software-2/installing-emacs-24-4-1-with-libxml2-4175535781/)

yoreei 03-04-2015 06:19 PM

Installing Emacs 24.4.1 with libxml2
 
Hi. I've been wanting to try the new eww browser from emacs 24 but as I am on Mint Rebecca I have only version 23 in the repositories.

I compiled from source but when I start eww it poits out that it can't run because emacs was built without libxml2. Indeed when I return to my ./configure output it says that it was built without libxml2.
Thing is, I DO have libxml2:
Code:

ldconfig -p | grep libxml2
outputs:
Code:

libxml2.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libxml2.so.2
libxml2.so.2 (libc6) => /usr/lib/i386-linux-gnu/libxml2.so.2

Why can't emacs find it?. How can I point it out to the configure script manually?
this seems like a similar thread, though sadly, unanswered:
http://mail-index.netbsd.org/netbsd-...msg015404.html
Maybe it's an Emacs bug?

evo2 03-04-2015 10:17 PM

Hi,

I guess you don't/didn't have the libxml2-dev package installed.

Evo2.

Ztcoracat 03-04-2015 10:52 PM

Sounds like a unmet dependency:-

Try running dpkg -L libxml2 to see if it's installed.
If it's not installed than use your cmd-line utility to install it.

Dependencies can be annoying, sorry your having trouble.

I wish I knew how to point it to the configuration script cause I'm pretty sure that would do it.

If your in the right directory the script should be seen. It should be at the top level of the src tree.

These links might help-
http://www.gnu.org/software/libc/man...compiling.html
http://www.emacswiki.org/emacs/BatchMode
http://www.aaronbedra.com/emacs.d/

evo2 03-04-2015 10:57 PM

Hi,
Quote:

Originally Posted by evo2 (Post 5327104)
I guess you don't/didn't have the libxml2-dev package installed.

Sorry, I should be explicit: this is not really a guess. The output from "ldconfig -p | grep libxml2" makes is quite clear that libxml2-dev is not installed. It is needed at configure/build time but not at run time.

Evo2.

yoreei 03-05-2015 01:51 AM

I totally forgot about the -dev package. I'll install it and report back in 12 hours

yoreei 03-05-2015 02:13 PM

Yep, sudo apt-get install libxml2-dev did the trick. Eww is awesome :P
Thank you all.

Ztcoracat 03-05-2015 05:55 PM

Quote:

Originally Posted by yoreei (Post 5327445)
Yep, sudo apt-get install libxml2-dev did the trick. Eww is awesome :P
Thank you all.

Glad to hear all is well now.

What makes Eww so awesome?

yoreei 03-06-2015 06:39 AM

Oh, I didn't mean eww was awesome in any technical context. I felt it was awesome because of the things I had to go through to have it. In the end I don't even expect to be using it that much. Eww was the fist thing that helped me notice I was using an old version of emacs because the repos were lagging behind. As I am verry passionate about learning emacs, I'd like to be using the latest stable version so that I don't fall into the trap of using deprecated stuff and missing on the latest features.

Ztcoracat 03-07-2015 12:15 AM

Quote:

Originally Posted by yoreei (Post 5327775)
Oh, I didn't mean eww was awesome in any technical context. I felt it was awesome because of the things I had to go through to have it. In the end I don't even expect to be using it that much. Eww was the fist thing that helped me notice I was using an old version of emacs because the repos were lagging behind. As I am verry passionate about learning emacs, I'd like to be using the latest stable version so that I don't fall into the trap of using deprecated stuff and missing on the latest features.

I can appreciate that-;)

Have a good weekend!


All times are GMT -5. The time now is 07:19 PM.