• linux下软链接文件的拷贝


    最近在编译libnl库准备拷贝到其他机器中使用的时候出现无法拷贝问题,原因是sd卡是fat32文件系统格式,这种文件系统不支持linux下的ln软链接文件,

    void@void-ThinkPad-E450:~/libnl-3.4.0$ sudo cp /usr/local/arm/libnl3.4/lib /media/void/0000-006F/ -rf
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-cli-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-route-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-genl-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-nf-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-xfrm-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-genl-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-idiag-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-xfrm-3.so.200’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-nf-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-route-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-idiag-3.so’: Operation not permitted
    cp: cannot create symbolic link ‘/media/void/0000-006F/lib/libnl-cli-3.so.200’: Operation not permitted

    于是只好先将整个文件夹打包,拷贝到别的机器上后再次解压即可

    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$ sudo tar -cjvf libnl.bz2 ./lib
    
    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$ cp libnl.bz2 /media/void/0000-006F/
    gcc-linaro.tar.bz2      lib/                    libnl-3.4.0.tar.gz      libnl-doc-3.4.0.tar.gz  trave/                  
    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$ cp libnl.bz2 /media/void/0000-006F/ -v
    ‘libnl.bz2’ -> ‘/media/void/0000-006F/libnl.bz2’
    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$ sync
    
    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$ umount /media/void/0000-006F
    void@void-ThinkPad-E450:/usr/local/arm/libnl3.4$
  • 相关阅读:
    关于ie7下display:inline-block;不支持的解决方案。
    Unicode转义序列
    DOMContentLoaded与load的区别
    有关列分组,定义css样式无效的问题
    多行文字溢出[...]的实现(text-overflow: ellipsis)
    goahead cgi 及出现的问题解决
    Android面试题整理(1)
    回溯法 之 马周游(马跳日)问题
    软件工程总结
    [置顶] 每日震精图
  • 原文地址:https://www.cnblogs.com/tid-think/p/9105733.html
Copyright © 2020-2023  润新知