LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01: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, 02:16 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
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, 06:44 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: DC
Distribution: RHEL/CentOS
Posts: 1,330
Blog Entries: 4

Rep: Reputation: 160Reputation: 160
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, 05:32 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,101

Rep: Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497Reputation: 1497
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


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

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

All times are GMT -5. The time now is 01:10 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