现在的位置: 首页 > 操作系统 > 正文

linux 安装nas

2018年05月28日 操作系统 ⁄ 共 1226字 ⁄ 字号 评论关闭

    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.

【上篇】
【下篇】

抱歉!评论已关闭.