Open jdwilsonjr opened 13 years ago
same problem for me... centos 5.5 installed, and both versions of libxml (32 and 64bit)
Same issue here, on RHEL5
Install libxml2-dev
Worked like a champ for me. But unfortunately, it won't 'make' now
I encountered the same problem on Debian 6.0 (Squeeze):
configure: error: 'Unable to find libxml2. Please make sure library and header files are installed.'
I was able to resolve this by installing the pkg-config package via aptitude:
aptitude -y install pkg-config
After installing pkg-config and running ./configure again I hit a new problem:
configure: error: 'Unable to find libcurl. Please make sure library and header files are installed.'
It appears libcurl-dev on Debian 6.0 wasn't the only necessary package. I was able to resolve this by installing the following packages:
aptitude -y install libcurl-dev libcurl-ssl-dev libcurl3 libcurl4-dev libcurl3-openssl-dev libcurl4-openssl-dev libcurl3-dev
Cheers!
Thank you for keeping this alive! Unfortunately it still won't 'make'. Here are my logs should anyone be interested:
roger@roger-ubuntu-pc:~/Programs/cloudfuse$ ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for a thread-safe mkdir -p... /bin/mkdir -p checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XML... yes checking for CURL... yes checking for FUSE... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for working alloca.h... yes checking for alloca... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdint.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking fuse.h usability... no checking fuse.h presence... no checking for fuse.h... no checking curl/curl.h usability... yes checking curl/curl.h presence... yes checking for curl/curl.h... yes checking libxml/tree.h usability... no checking libxml/tree.h presence... no checking for libxml/tree.h... no checking openssl/crypto.h usability... yes checking openssl/crypto.h presence... yes checking for openssl/crypto.h... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct stat.st_blocks... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for ftruncate... yes checking for memmove... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h
roger@roger-ubuntu-pc:~/Programs/cloudfuse$ make
gcc -g -O2 -I/usr/include/libxml2 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -o cloudfuse cloudfsapi.c cloudfuse.c -lxml2 -lcurl -pthread -lfuse -lrt -ldl
cloudfsapi.c: In function ‘send_request’:
cloudfsapi.c:155:18: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
/usr/lib64/libcurl.so: undefined reference to ldap_sasl_bind@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_sockbuf_add_io@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_get_attribute_ber@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_set_option@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_msgfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_search_ext@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_get_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_memfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_next_message@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_free@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_err2string@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_init_fd@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_free_urldesc@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to `ldap_first_message@OPENLDAP_2.4_2'
collect2: ld returned 1 exit status
make: *\ [cloudfuse] Error 1
roger@roger-ubuntu-pc:~/Programs/cloudfuse$ sudo make install
gcc -g -O2 -I/usr/include/libxml2 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -o cloudfuse cloudfsapi.c cloudfuse.c -lxml2 -lcurl -pthread -lfuse -lrt -ldl
cloudfsapi.c: In function ‘send_request’:
cloudfsapi.c:155:18: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
/usr/lib64/libcurl.so: undefined reference to ldap_sasl_bind@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_sockbuf_add_io@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_get_attribute_ber@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_set_option@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_msgfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_search_ext@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_get_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_memfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_next_message@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ber_free@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_err2string@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_init_fd@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to ldap_free_urldesc@OPENLDAP_2.4_2' /usr/lib64/libcurl.so: undefined reference to
ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so: undefined reference to `ldap_first_message@OPENLDAP_2.4_2'
collect2: ld returned 1 exit status
make: *\ [cloudfuse] Error 1
roger@roger-ubuntu-pc:~/Programs/cloudfuse$
Anyone have any suggestions to what I can do?
For CentOS 5.5 the libs are called "-devel" instead of "-dev". So, yum install libxml2-devel will solve this. Also try yum search libxml to see the available packages.
I ran into this problem on server with Ubuntu/Debian wheezy/sid. Need to use install not only libxml2 but the libcurl and pkg-config. I didn't have problems with the make and it worked beautifully.
On Ubuntu 13.04, installing pkg-config also solved the issue for me.
i am facing the error any suggestions i tried and installed above things
I had to install pkg-config
, libxml2-dev
, libcurl4-gnutls-dev
and libfuse-dev
for ./configure
to work on Ubuntu 13.04
apt-get install fuse libfuse-dev
apt-get install gcc libxml2 libxml2-dev
apt-get install python-eventlet python-greenlet python-netifaces python-simplejson python-xattr
aptitude -y install pkg-config
aptitude -y install libcurl-dev libcurl-ssl-dev libcurl3 libcurl4-dev libcurl3-openssl-dev libcurl4-openssl-dev libcurl3-dev
apt-get install make
then
./configure
make
make install
note that "tenant" should be the tenant name, NOT the ID
username=my@email.com
#WARNING : note that "tenant" should be the tenant name, NOT the ID:
tenant=COMPUTE-***********************************************
password=mysuperpassword
authurl=https://identity.fr1.cloudwatt.com/v2.0/tokens
verify_ssl=True
add www-data to the 'fuse' group :
usermod -a -G fuse www-data
change permissions for /dev/fuse
chmod g+rw /dev/fuse
chgrp fuse /dev/fuse
Then mount :
sudo -u www-data /usr/local/bin/cloudfuse /mnt/cw -o noauto_cache,sync_read
you can find your datas in /mnt/cw ...
Confirming this issue on Ubuntu Server 16.04. Simply installing libxml-dev isn't enough to satisfy the requirement, the actual missing dependency seems to be pkg-config, which ./configure doesn't make obvious. Recommend adding pkg-config to the dependencies list in the README for ubuntu/debian systems, as it doesn't seem to be included in build-essential.
Once I installed that, I was able to make and install with no issues.
I had the same Issue, but I installed libxml2-dev and it worked!
Hello Cloudfuse ;-)
Seem unable to satisfy ./configure that libxml2 is present / available on centos 5.5.
Any suggestions ?
== copied from console ==
Installed: libxml2.i386 0:2.6.26-2.1.2.8.el5_5.1
Updated: libxml2.x86_64 0:2.6.26-2.1.2.8.el5_5.1
Complete! [root@rackspace-01 redbo-cloudfuse-0c63cc1]# ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for a thread-safe mkdir -p... /bin/mkdir -p checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XML... no configure: error: 'Unable to find libxml2. Please make sure library and header files are installed.'
== thanks ==