QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1641|回复: 2

编译 ntfs-3g 时需要注意参数添加 --with-fuse=external

[复制链接]
发表于 2013-4-23 12:43:12 | 显示全部楼层 |阅读模式
默认这个开关如果直接获取 fedora 源码不加注意的话可能会是关闭的,结果是造成 ntfs-3g 挂载失败。
--with-fuse=external
# Pass --with externalfuse to compile against system fuse lib
# Default is internal fuse-lite.
发表于 2013-4-23 22:50:52 | 显示全部楼层
这个要看情况,ntfs-3g有时候跟不上fuse的升级,就只能用internal的.
回复

使用道具 举报

 楼主| 发表于 2013-4-24 06:27:17 | 显示全部楼层
ntfs-3g 打包需要参历史打包的文档,不能照抄 Fedora。
rm -rf "%{buildroot}/sbin"
mkdir -p "%{buildroot}/sbin"
pushd "%{buildroot}/sbin"
ln -sf /bin/ntfs-3g mount.ntfs
ln -sf /bin/ntfs-3g mount.ntfs-fuse
cat >> mount.ntfs-3g << EOF
#!/bin/bash
case \$LANG in
zh_CN.GB18030|zh_CN.gb18030|zh_CN.GBK|zh_CN.gbk|zh_CN.GB2312|zh_CN.gb2312)
/bin/ntfs-3g \$* -o locale=zh_CN.GB18030;;
*)/bin/ntfs-3g \$*;;
esac
EOF
chmod 777 mount.ntfs-3g
popd
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-23 23:28 , Processed in 0.049835 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表