LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-13-2016, 12:51 PM   #1
hpdp
LQ Newbie
 
Registered: Jan 2016
Posts: 15

Rep: Reputation: Disabled
install libxml2 on linux, run configure failed


I downloaded libxml2-2.9.3.tar.gz After unzip it, I ran configure, but got the following errors.

~/libxml2-2.9.3]$ sh ./configure --help : command not found4: ./configure: line 29: syntax error near unexpected token newline'
'/configure: line 29: ;;

I tried 'sh ./configure --prefix=/home/mydir/libxml2-2.9.3', got same error.

running './configure --help' says './configure: Command not found.' The first in configure is '#! /bin/sh'. When I type 'which sh' at my directory, it says '/bin/sh'

Please help me to install the libxml2. Thanks a lot!!
 
Old 01-13-2016, 01:16 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Normally for such a BASIC part of the operating system you use your Package manager
and install that from your distros software repos

For RHEL using "yum"
Code:
su -
yum install libxml2
for Debian
Code:
su -
apt-get update
apt-get install libxml2
 
Old 01-14-2016, 05:44 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by hpdp View Post
I downloaded libxml2-2.9.3.tar.gz After unzip it, I ran configure, but got the following errors.

~/libxml2-2.9.3]$ sh ./configure --help : command not found4: ./configure: line 29: syntax error near unexpected token newline'
'/configure: line 29: ;;

I tried 'sh ./configure --prefix=/home/mydir/libxml2-2.9.3', got same error.

running './configure --help' says './configure: Command not found.' The first in configure is '#! /bin/sh'. When I type 'which sh' at my directory, it says '/bin/sh'

Please help me to install the libxml2. Thanks a lot!!
It would be helpful you put your code/output in tags.

Also, we don't know the Version of Linux or if you are using a package manager.

Also you are you being prompted to install libxml2? If so, by what?
 
Old 01-18-2016, 04:32 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
You might be using some unusual shell...
Try to investigate, eg in my system:

Code:
ls -l /bin/sh; dpkg -S /bin/dash; dpkg -l dash
 
  


Reply



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
[SOLVED] php install halts - configure: error: libxml2 version 2.6.11 or greater required. nonshatter Linux - Software 1 09-02-2010 08:39 AM
failed to configure, remove and install package after cancelling configuration umarzuki Debian 4 10-09-2009 09:17 AM
iPod firewire install neat - ./configure failed (YDL) yoeluk Linux - Laptop and Netbook 5 07-28-2006 01:59 AM
libxml2 source: configure file missing logicalfuzz Linux - Software 4 11-30-2005 11:46 AM
can't find installed libxml2 during ./configure progressdll Linux - Software 2 09-23-2003 09:52 AM

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

All times are GMT -5. The time now is 12:16 PM.

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