ln: creating symbolic link 'path' Operation not supported 问题解决方法

本次将window目录mount给linux,编译rpm安装包时,出现如下错误:
”’extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/bin/EcoX
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/b2/2185ac5369a5d6fced6abb6b913debf1e4aec7': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/b2/2185ac5369a5d6fced6abb6b913debf1e4aec7.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/liblog4c.so
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/liblog4c.so.3
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/liblog4c.so.3.3.1
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/18/2d61524c26206e9fb73488fe57d05b9ac53b90.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/libzookeeper_mt.so
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/libzookeeper_mt.so.2
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644.debug’: Operation not supported
extracting debug info from /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/local/EcoX/lib/libzookeeper_mt.so.2.0.0
ln: creating symbolic link /root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644': Operation not supported
ln: creating symbolic link
/root/window/EcoX/EcoX-1.0.0/rpmbuild/BUILDROOT/EcoX-1.0.0-1.el6.x86_64/usr/lib/debug/.build-id/04/4791a34c11225fdcd9887d0a16b8b158b27644.debug’: Operation not supported”’

根据网上搜索的方法,结合自己的实践将解决过程记录下来,以供参考

问题原因

windows NTFS文件系统不支持软链接,导致创建软链接时失败

解决思路

在linux主机上创建samba 共享,将文件拷贝到共享目录,及解决了编译问题,也实现了windows与linux共享文件的目的

解决过程

安装及配置samba服务

yum install samba samba-client

修改samba配置文件

cp /etc/samba/
cp smb.conf smb.conf.bak
vim smb.com #配置内容如下:
”’
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
netbios name = 10.9.5.10
; hosts allow = 127. 192.168.12. 192.168.13. 10.9. 192.
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50

security = share 
passdb backend = tdbsam

[share]
comment = share all
path = /home/samba/share/
browseable = yes
public = yes
writable = yes
”’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值