LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   install libxml2 on linux, run configure failed (https://www.linuxquestions.org/questions/linux-software-2/install-libxml2-on-linux-run-configure-failed-4175563854/)

hpdp 01-13-2016 12:51 PM

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!!

John VV 01-13-2016 01:16 PM

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


JockVSJock 01-14-2016 05:44 PM

Quote:

Originally Posted by hpdp (Post 5477599)
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?

NevemTeve 01-18-2016 04:32 AM

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


All times are GMT -5. The time now is 09:50 PM.