交叉编译curlftpfs

来源:互联网 发布:淘宝2017新规则 编辑:程序博客网 时间:2024/05/16 06:00

curlftpfs的作用:使linux系统能够mount FTP服务器的ftp目录。

交叉编译curlftpfs

依赖库:
openssl-1.0.0e.tar.gz
fuse-2.7.4.tar.gz,不要使用fuse-2.8.3.tar.gz。在运行过程中可能出现,找不到设备的情况。
curl-7.33.0.tar.gz,需要手动拷贝库,make install不会安装到/usr/local/lib下。
glib-2.0.6.tar.bz2,(可能还需要)


交叉编译:需要./configure --host=arm-none-linux-gnueabi


当/usr/local/lib/目录下有libssl.so libcrpto.so libcurl.so libfuse.so等库(或类似的库),才可以安装curlftpfs。




tar -xzvf curlftpfs-0.9.2.tar.gz
cd curlftpfs-0.9.2
curlftpfs-0.9.2#./configure --host=arm-none-linux-gnueabi 
curlftpfs-0.9.2#make 
问题1:
ftpfs.c:1693: undefined reference to `rpl_realloc'
ftpfs.c:707: undefined reference to `rpl_malloc'
解决1:
屏蔽config.h.in中间的#undef malloc和#undef realloc


问题2:
运行curlftpfs -o codepage=utf8 ftp://username:password@192.168.1.100 /ftp
Error setting curl:
解决2:
屏蔽ftpfs.c中间的curl_easy_setopt_or_die(easy, CURLOPT_FTP_SSL, ftpfs.use_ssl);


问题3:
运行curlftpfs
找不到fuse:device not found,try ‘modprobe fuse’ first
解决3:
内核需要加载fuse模块。
内核位置:linux-2.6.28-fa/fs/fuse
原创粉丝点击