我只是尝试使用Homebrew和Linuxbrew在我的Ubuntu服务器上安装软件包但都失败了.这是我尝试安装它们的方式:
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Run Code Online (Sandbox Code Playgroud)
我收到以下警告:
Warning: /home/tong/.linuxbrew/bin is not in your PATH.
Run Code Online (Sandbox Code Playgroud)
我在home/etc中查看我的bash.bashrc并添加:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Run Code Online (Sandbox Code Playgroud)
然后我试了brew doctor
但是得到了No command 'brew' found
.我怎么能在Ubuntu上使用Homebrew?
我正在尝试使用brew安装节点,但它在make install中被卡住并且什么都不做.我正在使用ubunutu 14.04.这是来自终端的日志:
==> Downloading https://nodejs.org/dist/v4.2.1/node-v4.2.1.tar.gz
Already downloaded: /home/tsepak33/.cache/Homebrew/node-4.2.1.tar.gz
==> Downloading https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
Already downloaded: /home/tsepak33/.cache/Homebrew/node--icu4c-56.1.tgz
==> ./configure --prefix=/home/tsepak33/.linuxbrew/Cellar/node/4.2.1 --without-n
==> make install
Run Code Online (Sandbox Code Playgroud)
我尝试使用brew重新安装节点,但没有任何作用.
我在我的服务器上安装了Linuxbrew 。但是,当我尝试运行任何命令时,我遇到了curl 问题(brew 使用它来获取其更新)。通常,当其他类似的工具出现此类问题时,它们会提供一个标志来使证书检查无效,并且curl
它本身为您提供了使用该-k
标志的可能性。
然而在brew的文档中我没有找到这样一个可用的标志。insecure
因此,我的第二个猜测是在我家中放置的文件中设置标志.curlrc
,将curl 不检查SSL 证书设置为默认值。
下面是我运行 bew 时的输出示例:
-bash-4.1$ brew update
==> Installing dependencies for curl: patchelf, zlib, binutils, linux-headers, glibc, m4, gmp, mpfr, libmpc, isl@0.18, gcc, pkg-config and openssl
==> Installing curl dependency: patchelf
==> Downloading https://linuxbrew.bintray.com/bottles/patchelf-0.10.x86_64_linux.bottle.tar.gz
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public …
Run Code Online (Sandbox Code Playgroud) 我在 ubuntu 19.04 上安装了自制软件,但意外停止,因此安装未完成。但文件夹已经创建。
如果我再安装
sudo apt install linuxbrew-wrapper
Run Code Online (Sandbox Code Playgroud)
我收到一条消息:
linuxbrew-wrapper 已经是最新版本了
但如果我写命令:
brew upgrade
Run Code Online (Sandbox Code Playgroud)
我收到这条消息:
找不到命令“brew”,但可以使用以下命令安装:
sudo apt install linuxbrew-wrapper”。
谁能帮我解决这个问题?
我正在尝试在Ubuntu 14.04.3 LTS上构建linuxbrew独立安装,但原始链接中的脚本目前已损坏.我理想的答案是一个可以一次性正确设置的脚本.我已经改进了脚本以减少打嗝运行.
我不能让过去一个crti.o
通过linuxbrew作为独立设置的一部分编译GCC时错误.但是,我找到了解释问题的一些资源:
我搜索了文件,它就在那里!
find -name crti.o
./.linuxbrew/lib/crti.o
./.linuxbrew/Cellar/glibc/2.19/lib/crti.o
Run Code Online (Sandbox Code Playgroud)
我目前正在处理以下编译器错误crtn.o
:
/home/hbr/.linuxbrew/Cellar/binutils/2.25.1/x86_64-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/home/hbr/.linuxbrew/Cellar/binutils/2.25.1/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc
/home/hbr/.linuxbrew/Cellar/binutils/2.25.1/x86_64-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/tmp/gcc20150929-3726-hif3of/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/tmp/gcc20150929-3726-hif3of/gcc-5.2.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: …
Run Code Online (Sandbox Code Playgroud) 我在我的Ubuntu上安装Postgresql:
brew install postgres
我现在有:
psql --version
psql (PostgreSQL) 9.5.0
Run Code Online (Sandbox Code Playgroud)
如何自动启动服务?
在我的Mac上用自制软件我可以用:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Run Code Online (Sandbox Code Playgroud)
但是如何在Ubuntu上使用Linuxbrew?
我试着用:
brew services start postgresql
但它说:
sh: 1: list: not found
Error: Could not read the plist for `postgresql`!
Run Code Online (Sandbox Code Playgroud)
该怎么办?
我遇到了:
错误:父目录是全局可写但不粘
在尝试时:
brew install yarn
错误:父目录是世界可写但不粘的
请报告此错误:
https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
/var/lib/jenkins/.linuxbrew/Library/ Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/tmpdir.rb:92:in,mktmpdir'
有谁知道如何解决这个问题?
我想解决本期中描述的相同问题。
因此我想执行以下命令:
$ sudo setcap cap_net_bind_service=+ep /home/username/.linuxbrew/bin/node
Run Code Online (Sandbox Code Playgroud)
这产生了错误:
Failed to set capabilities on file `/home/username/.linuxbrew/bin/node' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Run Code Online (Sandbox Code Playgroud)
发生这种情况是因为文件夹名称是.linuxbrew,如果是,我该如何修复它?
linuxbrew ×8
homebrew ×7
ubuntu ×4
node.js ×2
curl ×1
installation ×1
jenkins ×1
port ×1
postgresql ×1
react-native ×1
yarnpkg ×1