我有灵感开始搞乱Erlang,但在安装它时遇到了问题...我正在使用Linux Mint 16(petra)。我安装了依赖项,然后下载了otp_src_17.1.tar.gz并运行'tar -zxf otp_src_17.1.tar.gz'然后我运行了./configure,这给了我一些错误,使得无法运行make。

这些是我得到的错误(实际上我所做的是我做的./configure> configure.txt,以获取它在配置时打印的所有行,并且仍方便地将所有有错误的内容打印到控制台-整齐)

configure: WARNING: No odbc library found skipping odbc
configure: WARNING: "ODBC library - header check failed"
configure: WARNING: "ODBC library - link check failed"
rm: remove write-protected regular file './CONF_INFO'?
configure: WARNING: No GLU headers found, wx will NOT be usable
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5195: wx-config: command not found
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5893: ./CONF_INFO: Permission denied
configure: WARNING:
                wxWidgets must be installed on your system.

        Please check that wx-config is in path, the directory
        where wxWidgets libraries are installed (returned by
        'wx-config --libs' or 'wx-config --static --libs' command)
        is in LD_LIBRARY_PATH or equivalent variable and
        wxWidgets version is 2.8.4 or above.
rm: remove write-protected regular file 'doc/CONF_INFO'?
/home/core/Desktop/otp_src_17.1/erts/configure: line 6466: doc/CONF_INFO: Permission denied
configure: WARNING: No 'xsltproc' command found: the documentation cannot be built
/home/core/Desktop/otp_src_17.1/erts/configure: line 6513: doc/CONF_INFO: Permission denied
configure: WARNING: No 'fop' command found: going to generate placeholder PDF files

configure: error: No curses library functions found
configure: error: /bin/bash '/home/core/Desktop/otp_src_17.1/erts/configure' failed for erts

事实是-我知道我拥有ncurses库,这一事实证明了当我执行“sudo apt-get install ncurses-base ncurses-bin”时,它说:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ncurses-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

当我运行“locate ncurses”时,它会为我提供以下信息:
/lib/i386-linux-gnu/libncurses.so.5
/lib/i386-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncurses.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncursesw.so.5
/lib/x86_64-linux-gnu/libncursesw.so.5.9
/usr/bin/ncurses5-config
/usr/bin/ncursesw5-config
/usr/lib/vlc/plugins/gui/libncurses_plugin.so
/usr/share/doc/libncurses5
/usr/share/doc/libncursesw5
/usr/share/doc/ncurses-base
/usr/share/doc/ncurses-bin
/usr/share/doc/ncurses-base/changelog.Debian.gz
/usr/share/doc/ncurses-base/copyright
/usr/share/doc/ncurses-bin/FAQ
/usr/share/doc/ncurses-bin/changelog.Debian.gz
/usr/share/doc/ncurses-bin/copyright
/usr/share/lintian/overrides/ncurses-base
/usr/share/man/man1/ncurses5-config.1.gz
/usr/share/man/man1/ncursesw5-config.1.gz
/var/cache/apt/archives/libncurses5_5.9+20130608-1ubuntu1_i386.deb
/var/lib/dpkg/info/libncurses5:amd64.list
/var/lib/dpkg/info/libncurses5:amd64.md5sums
/var/lib/dpkg/info/libncurses5:amd64.postinst
/var/lib/dpkg/info/libncurses5:amd64.postrm
/var/lib/dpkg/info/libncurses5:amd64.shlibs
/var/lib/dpkg/info/libncurses5:amd64.symbols
/var/lib/dpkg/info/libncurses5:i386.list
/var/lib/dpkg/info/libncurses5:i386.md5sums
/var/lib/dpkg/info/libncurses5:i386.postinst
/var/lib/dpkg/info/libncurses5:i386.postrm
/var/lib/dpkg/info/libncurses5:i386.shlibs
/var/lib/dpkg/info/libncurses5:i386.symbols
/var/lib/dpkg/info/libncursesw5:amd64.list
/var/lib/dpkg/info/libncursesw5:amd64.md5sums
/var/lib/dpkg/info/libncursesw5:amd64.postinst
/var/lib/dpkg/info/libncursesw5:amd64.postrm
/var/lib/dpkg/info/libncursesw5:amd64.shlibs
/var/lib/dpkg/info/libncursesw5:amd64.symbols
/var/lib/dpkg/info/ncurses-base.conffiles
/var/lib/dpkg/info/ncurses-base.list
/var/lib/dpkg/info/ncurses-base.md5sums
/var/lib/dpkg/info/ncurses-bin.list
/var/lib/dpkg/info/ncurses-bin.md5sums

我不知所措。谢谢你的帮助

最佳答案

在运行./configure之前,'sudo yum install ncurses-devel.x86_64'对我来说很好。 Fedora 21 x64,顺便说一句。

提取tar后,文档位于'/opt_src_{version}/HOWTO/INSTALL.md中。其中的内容说明:

所需的实用程序

这些是您解压缩和构建Erlang/OTP所需的工具。



开箱

  • GNU解压缩或现代解压缩。
  • 一个TAR程序,可以理解长文件名的GNU TAR格式。

  • build
  • GNU make
  • 编译器-GNU C编译器gcc或LLVM的C编译器前端clang
  • Perl 5
  • GNU m4-如果启用了HiPE( native 代码)支持。 HiPE可以是
    使用--disable-hipe禁用
  • ncursestermcaptermlib-开发 header 和
    需要库,通常称为ncurses-devel。用--without-termcap,无需任何这些库即可构建。注意
    在这种情况下,只能使用旧 shell 程序(无任何行编辑)。
  • sed-用于基本文本转换的流编辑器。

  • ncurses恰好是我尚未在此开发VM上安装的唯一必需软件包。因此,您的里程可能会有所不同。

    这是我安装ncurses库之后的“locate ncurses”输出:

    /usr/lib64/libncurses++.so.5
    /usr/lib64/libncurses++.so.5.9
    /usr/lib64/libncurses++w.so.5
    /usr/lib64/libncurses++w.so.5.9
    /usr/lib64/libncurses.so.5
    /usr/lib64/libncurses.so.5.9
    /usr/lib64/libncursesw.so.5
    /usr/lib64/libncursesw.so.5.9
    /usr/share/doc/ncurses
    /usr/share/doc/ncurses-base
    /usr/share/doc/ncurses/ANNOUNCE
    /usr/share/doc/ncurses/AUTHORS
    /usr/share/doc/ncurses/NEWS.bz2
    /usr/share/doc/ncurses/README
    /usr/share/doc/ncurses/TO-DO
    /usr/share/doc/ncurses-base/README
    /usr/share/licenses/ncurses-base
    /usr/share/licenses/ncurses-base/COPYING

    因此,我想说OP安装了损坏的/错误的ncurses。我将其发布在这里是因为这是我懒于RTFD时获得的Google排名第一。

    关于linux - 从tar安装erlang会导致错误,想知道如何指定文件夹,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24471705/

    10-13 05:45