简体   繁体   English

Rebar3安装失败

[英]Rebar3 installation fail

I am trying to install rebar3 using linuxbrew on Ubuntu 16.04. 我正在尝试在Ubuntu 16.04上使用linuxbrew安装rebar3

After I execute brew install rebar3 在执行brew install rebar3

distutils.errors.CompileError: command 'gcc-5' failed with exit status 1 /home/linuxbrew/.linuxbrew/Cellar/gobject-introspection/1.56.0/share/gobject-introspection-1.0/Makefile.introspection:159: recipe for target 'Pango-1.0.gir' failed distutils.errors.CompileError:命令'gcc-5'失败,退出状态为1 /home/linuxbrew/.linuxbrew/Cellar/gobject-introspection/1.56.0/share/gobject-introspection-1.0/Makefile.introspection:159:配方目标'Pango-1.0.gir'失败

This error occurs when trying to install pango dependency. 尝试安装pango依赖项时发生此错误。

My $PATH has /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin in it. 我的$PATH包含/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin

After I get this error, I manually installed pango using sudo apt-get install libghc-pango-dev 收到此错误后,我使用sudo apt-get install libghc-pango-dev手动安装了pango

GCC version - 5.4.0 GCC版本-5.4.0

Kernel - 4.13.0-37 内核-4.13.0-37

But still I get the same error again and again. 但是仍然我一次又一次地遇到相同的错误。

libghc means it's a binding for haskell. libghc表示它是haskell的绑定。

I believe you need libpango1.0-dev 我相信你需要libpango1.0-dev

rebar3 is just one file. rebar3只是一个文件。 Have a look at the documentation on how to install it. 查看有关如何安装它的文档

Linuxbrew doesn't work quite as well as Homebrew (in macOS), so for a lot of packages you will find out losing more time trying to make it work than just using alternatives. Linuxbrew的工作方式不如Homebrew(在macOS中)好,因此,对于许多软件包,您将发现失去使它工作的更多时间,而不仅仅是使用替代方法。

In any case, if you choose that route it will be something like (1) downloading the rebar3 binary, (2) making it executable and (3) putting it somewhere that's available anywhere — in your user's PATH . 无论如何,如果您选择该路由,将类似于(1)下载rebar3二进制文件,(2)使之可执行,以及(3)将其放置在用户PATH任何可用位置。


Another approach would be to use Nix : nix-env --install --prebuilt-only rebar3 — way easier although the introduction to it takes more time. 另一种方法是使用Nixnix-env --install --prebuilt-only rebar3 -尽管引入它需要更多时间,但方法更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM