linux 安装nas

    1.  Make sure you have imake.
        (See the BUILDNOTES file if you want to try building with X11R4).

    2.  Do "xmkmf" to create the initial Makefile.

        For Unixware 7, use:

        "imake -DUseInstalled -I/usr/lib/X11/config"

    3.  Do "make World" (note the uppercase World) to build the distribution.

        If you'd like to enable the option of having the audio library
        automatically start up an NAS server on the local host when
        necessary, use the following command to build the
        distribution:

        make WORLDOPTS='-k CDEBUGFLAGS="$(CDEBUGFLAGS) -DSTARTSERVER"' World
    4.  If everything built successfully, you can install it using
        "make install"; to temporarily stage it under some directory, use
        "make install DESTDIR=/usr/tmp/nas" or some such.

    5.  To install the manual pages, use "make install.man" or
        "make install.man DESTDIR=/usr/tmp/nas" as above.

 

缺少X11/Xaw    apt-get install libxaw7-dev 

出现的usr/bin/ld: cannot find -lxxx的错误,主要的原因是库文件并没有导入的ld检索目录中。
解决方式:

1。确认库文件是否存在,比如-l123, 在/usr/lib, /usr/local/lib,或者其他自定义的lib下有无lib123.so, 如果只是存在lib123.so.1,
那么可以通过ln -sv lib123.so.1 lib123.so,建立一个连接重建lib123.so.

2。检查/etc/ld.so.conf中的库文件路径是否正确,如果库文件不是使用系统路径,/usr/lib, /usr/local/lib, 那么必须在文件中加入。

3。ldconfig 重建ld.so.cache文件,ld的库文件检索目录存放文件。尤其刚刚编译安装的软件,必须运行ldconfig,才能将新安装的
库文件导入ld.so.cache.

4。测试,gcc -l123 --verbose.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值