LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2015, 06:19 PM   #1
yoreei
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Rep: Reputation: 0
Cool 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?
 
Old 03-04-2015, 10:17 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,695

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Hi,

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

Evo2.
 
Old 03-04-2015, 10:52 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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/
 
Old 03-04-2015, 10:57 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,695

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Hi,
Quote:
Originally Posted by evo2 View Post
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.
 
1 members found this post helpful.
Old 03-05-2015, 01:51 AM   #5
yoreei
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Original Poster
Rep: Reputation: 0
I totally forgot about the -dev package. I'll install it and report back in 12 hours
 
Old 03-05-2015, 02:13 PM   #6
yoreei
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Original Poster
Rep: Reputation: 0
Yep, sudo apt-get install libxml2-dev did the trick. Eww is awesome :P
Thank you all.
 
Old 03-05-2015, 05:55 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by yoreei View Post
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?
 
Old 03-06-2015, 06:39 AM   #8
yoreei
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 03-07-2015, 12:15 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by yoreei View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libxml2 probs when installing valknut. meeep Linux - Software 1 04-04-2007 09:32 AM
installation problems with libxml2-2.2.66.tar.gz and libxml2-devel2-2.6.20-3.tar.gz g-string 3 Linux - Software 6 11-24-2005 11:39 AM
Installing Conflict with libxml2-python 2.5.4 Baircomputers Linux - Software 0 07-07-2004 01:38 PM
installing gtk - wants libxml2. asktoby Linux - Newbie 3 07-28-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration