首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何连接ntfs-3g与自制?

如何连接ntfs-3g与自制?
EN

Stack Overflow用户
提问于 2015-10-22 21:14:59
回答 1查看 4.8K关注 0票数 5

如果这是别处的话请原谅,但我找不到。

我正试图在OSX10.11 (El Capitan)上安装NTFS-3G。

我正在这个链接上跟踪这个过程。

但是安装NTFS-3G报告的步骤是:

代码语言:javascript
复制
$ brew install homebrew/fuse/ntfs-3g
Warning: homebrew/fuse/ntfs-3g-2015.3.14 already installed, it's just not linked

所以..。

  1. 如何链接已安装的项目?
  2. 一旦完成,我如何完成安装过程?有没有什么“brew安装.”过程会做后链接吗?

编辑:以下方丹..。我得到:

代码语言:javascript
复制
$ brew link homebrew/fuse/ntfs-3g                                
Linking /usr/local/Cellar/ntfs-3g/2015.3.14... 
Error: Could not symlink share/doc/ntfs-3g/README
Target /usr/local/share/doc/ntfs-3g/README
already exists. You may want to remove it:
  rm '/usr/local/share/doc/ntfs-3g/README'

To force the link and overwrite all conflicting files:
  brew link --overwrite ntfs-3g

To list all files that would be deleted:
  brew link --overwrite --dry-run ntfs-3g
$ brew link --overwrite homebrew/fuse/ntfs-3g
Linking /usr/local/Cellar/ntfs-3g/2015.3.14... 
Error: Could not symlink share/doc/ntfs-3g/README
/usr/local/share/doc/ntfs-3g is not writable.

我要掉进洞里吗?如果我酿造卸载,它会清理所有的东西,还是我必须手动清理它?

这越来越乱了..。

EDIT2: brew链接-覆盖--试运行的输出是:

代码语言:javascript
复制
$ brew link --overwrite --dry-run homebrew/fuse/ntfs-3g
Would remove:
/usr/local/include/ntfs-3g/acls.h
/usr/local/include/ntfs-3g/attrib.h
/usr/local/include/ntfs-3g/attrlist.h
/usr/local/include/ntfs-3g/bitmap.h
/usr/local/include/ntfs-3g/bootsect.h
/usr/local/include/ntfs-3g/cache.h
/usr/local/include/ntfs-3g/collate.h
/usr/local/include/ntfs-3g/compat.h
/usr/local/include/ntfs-3g/compress.h
/usr/local/include/ntfs-3g/debug.h
/usr/local/include/ntfs-3g/device.h
/usr/local/include/ntfs-3g/device_io.h
/usr/local/include/ntfs-3g/dir.h
/usr/local/include/ntfs-3g/ea.h
/usr/local/include/ntfs-3g/efs.h
/usr/local/include/ntfs-3g/endians.h
/usr/local/include/ntfs-3g/index.h
/usr/local/include/ntfs-3g/inode.h
/usr/local/include/ntfs-3g/ioctl.h
/usr/local/include/ntfs-3g/layout.h
/usr/local/include/ntfs-3g/lcnalloc.h
/usr/local/include/ntfs-3g/logfile.h
/usr/local/include/ntfs-3g/logging.h
/usr/local/include/ntfs-3g/mft.h
/usr/local/include/ntfs-3g/misc.h
/usr/local/include/ntfs-3g/mst.h
/usr/local/include/ntfs-3g/ntfstime.h
/usr/local/include/ntfs-3g/object_id.h
/usr/local/include/ntfs-3g/param.h
/usr/local/include/ntfs-3g/realpath.h
/usr/local/include/ntfs-3g/reparse.h
/usr/local/include/ntfs-3g/runlist.h
/usr/local/include/ntfs-3g/security.h
/usr/local/include/ntfs-3g/support.h
/usr/local/include/ntfs-3g/types.h
/usr/local/include/ntfs-3g/unistr.h
/usr/local/include/ntfs-3g/volume.h
/usr/local/include/ntfs-3g/xattrs.h
/usr/local/share/man/man8/mkfs.ntfs.8 -> /usr/local/share/man/man8/mkntfs.8
/usr/local/share/man/man8/mkntfs.8
/usr/local/share/man/man8/mount.lowntfs-3g.8 -> /usr/local/share/man/man8/ntfs-3g.8
/usr/local/share/man/man8/mount.ntfs-3g.8 -> /usr/local/share/man/man8/ntfs-3g.8
/usr/local/share/man/man8/ntfs-3g.8
/usr/local/share/man/man8/ntfs-3g.probe.8
/usr/local/share/man/man8/ntfs-3g.secaudit.8
/usr/local/share/man/man8/ntfs-3g.usermap.8
/usr/local/share/man/man8/ntfscat.8
/usr/local/share/man/man8/ntfsclone.8
/usr/local/share/man/man8/ntfscluster.8
/usr/local/share/man/man8/ntfscmp.8
/usr/local/share/man/man8/ntfscp.8
/usr/local/share/man/man8/ntfsfix.8
/usr/local/share/man/man8/ntfsinfo.8
/usr/local/share/man/man8/ntfslabel.8
/usr/local/share/man/man8/ntfsls.8
/usr/local/share/man/man8/ntfsprogs.8
/usr/local/share/man/man8/ntfsresize.8
/usr/local/share/man/man8/ntfsundelete.8
/usr/local/lib/libntfs-3g.86.dylib
/usr/local/lib/libntfs-3g.a
/usr/local/lib/libntfs-3g.dylib -> /usr/local/lib/libntfs-3g.86.dylib
/usr/local/lib/pkgconfig/libntfs-3g.pc
$ 

但即使在“brew卸载”之后..。目录/usr/local/include/ntfs-3g仍然存在

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-10-23 09:25:52

使用brew link homebrew/fuse/ntfs-3g

为了更进一步,这里有一些相关的通用命令:

代码语言:javascript
复制
brew install <formula>   # install (and link) the formula
brew unlink <formula>    # unlink the formula
brew link <formula>      # link the formula
brew uninstall <formula> # uninstall (and unlink) the formula

要理解这一点,您需要知道,当Homebrew安装公式foo version 1.2.3时,它会在/usr/local/Cellar/foo/1.2.3/下安装所有东西,然后在/usr/local/bin中将所有二进制文件和/usr/local/share/man下的所有手册链接起来。这意味着/usr/local/bin/something不是二进制文件,而是指向相关二进制文件的符号链接(例如/usr/local/Cellar/foo/1.2.3/bin/something)。

有时双星之间会发生冲突。例如,mysqlmariadb都提供了mysql二进制文件。自制软件不能同时将两者连接起来,因此它允许您安装一个;断开链接;然后安装另一个。这样,你就可以在你的系统中同时拥有这两种方式,而不产生冲突。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33290873

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档