xiongxu / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Having trouble building s3fs #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I run these commands on Fedora 10:

yum -y groupinstall "Development Tools" 
yum -y install fuse-devel libcurl-devel libxml-devel
cd ~
wget -q http://s3fs.googlecode.com/files/s3fs-r177-source.tar.gz
tar xzf s3fs-r177-source.tar.gz
cd s3fs
make

I get this error:
s3fs.cpp:35:27: error: libxml/parser.h: No such file or directory

Original issue reported on code.google.com by greg.cli...@gmail.com on 18 Aug 2009 at 4:47

GoogleCodeExporter commented 9 years ago
try yum install libxml2-devel ?

Original comment by rri...@gmail.com on 18 Aug 2009 at 2:05

GoogleCodeExporter commented 9 years ago
Perfect, it works! Thank you very much.

Original comment by greg.cli...@gmail.com on 18 Aug 2009 at 2:16

GoogleCodeExporter commented 9 years ago
I'm getting the same set of errors, using Ubuntu 10 I've installed fuse, 
libcurl, and libxml2 development source, yet I get:

~/dev/s3fs$ sudo make s3fs
g++     s3fs.cpp   -o s3fs
In file included from /usr/include/fuse/fuse.h:26,
                 from /usr/include/fuse.h:9,
                 from s3fs.cpp:23:
/usr/include/fuse/fuse_common.h:32:2: error: #error Please add 
-D_FILE_OFFSET_BITS=64 to your compile flags!
s3fs.cpp:35:27: error: libxml/parser.h: No such file or directory
s3fs.cpp:36:25: error: libxml/tree.h: No such file or directory
s3fs.cpp: In function ‘int put_local_fd(const char*, headers_t, int)’:
s3fs.cpp:794: warning: format ‘%llu’ expects type ‘long long unsigned 
int’, but argument 4 has type ‘__off_t’
s3fs.cpp: In function ‘int s3fs_readdir(const char*, void*, int (*)(void*, 
const char*, const stat*, off_t), off_t, fuse_file_info*)’:
s3fs.cpp:1332: error: ‘xmlDocPtr’ was not declared in this scope
s3fs.cpp:1332: error: expected ‘;’ before ‘doc’
s3fs.cpp:1333: error: ‘doc’ was not declared in this scope
s3fs.cpp:1334: error: ‘xmlNodePtr’ was not declared in this scope
s3fs.cpp:1334: error: expected ‘;’ before ‘cur_node’
s3fs.cpp:1334: error: ‘cur_node’ was not declared in this scope
s3fs.cpp:1345: error: expected ‘;’ before ‘sub_node’
s3fs.cpp:1345: error: ‘sub_node’ was not declared in this scope
s3fs.cpp:1346: error: ‘XML_ELEMENT_NODE’ was not declared in this scope
s3fs.cpp:1349: error: ‘XML_TEXT_NODE’ was not declared in this scope
s3fs.cpp:1403: error: ‘doc’ was not declared in this scope
s3fs.cpp:1403: error: ‘xmlFreeDoc’ was not declared in this scope
make: *** [s3fs] Error 1

Original comment by chris.d....@gmail.com on 23 Jun 2010 at 6:24

GoogleCodeExporter commented 9 years ago
try sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev 
libfuse-dev 

Original comment by rri...@gmail.com on 23 Jun 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Not a s3fs code issue, but related to missing packages on distros.  
Installation Notes wiki page and autotools dependency checking should help 
users resolve their build issues on common distributions.

Original comment by dmoore4...@gmail.com on 3 Dec 2010 at 5:15