gpt4 book ai didi

linux - 每个命令都会产生段错误

转载 作者:太空宇宙 更新时间:2023-11-04 03:50:22 26 4
gpt4 key购买 nike

所以我尝试安装 Linuxbrew,但运气不佳,所以我使用 github 站点的故障排除部分来安装它。看起来一切都工作正常,但是命令完成运行后就出现了问题。我输入的每个命令都会出现段错误。是否使用 bash 或像 bash --version 这样简单的东西运行 shell 脚本并不重要。来自 Homebrew/Linuxbrew 的代码块让我在下面感到困惑。

prefix=~/.linuxbrew
PATH="$prefix/bin:$prefix/sbin:$PATH"
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/linuxbrew/go/install)"
ln -s $(which gcc) $prefix/bin/gcc-$(gcc -dumpversion |cut -d. -f1,2)
ln -s $(which g++) $prefix/bin/g++-$(g++ -dumpversion |cut -d. -f1,2)
ln -s $(which gfortran) $prefix/bin/gfortran-$(gfortran -dumpversion |cut -d. -f1,2)
brew install hello && brew test -v hello; brew remove hello
sudo yum install gcc44 gcc44-c++
ln -s /usr/bin/gcc44 $prefix/bin/gcc-4.4
ln -s /usr/bin/g++44 $prefix/bin/g++-4.4
ln -s /usr/bin/gfortran44 $prefix/bin/gfortran-4.4
export HOMEBREW_CC=gcc-4.4
brew install hello && brew test -v hello; brew remove hello
brew install glibc
brew remove binutils
brew unlink glibc
brew test glibc
brew install hello && brew test -v hello; brew remove hello
ln -s lib $prefix/lib64
brew install https://raw.githubusercontent.com/Homebrew/homebrew-dupes/master/zlib.rb
brew install binutils
brew install hello && brew test -v hello; brew remove hello
brew link glibc
ln -s /usr/lib64/libstdc++.so.6 /lib64/libgcc_s.so.1 $prefix/lib/
brew install gcc --with-glibc -v
rm -f $prefix/lib/{libstdc++.so.6,libgcc_s.so.1}
brew link gcc
export HOMEBREW_CC=gcc-4.9
brew install hello && brew test -v hello; brew remove hello
brew install curl expat git
brew tap homebrew/dupes
brew install bzip2 coreutils findutils gawk gnu-sed gnu-which grep libpng libxml2 libxslt make ncurses readline ruby
PATH=$prefix/bin:$prefix/sbin
brew install hello && brew test -v hello; brew remove hello
ln -s ncursesw/curses.h $prefix/include

知道如何回到终端实际上​​允许我做任何事情的地方吗?我使用的是 Linux RedHat

最佳答案

为了解决上述脚本引起的问题,我们从头开始重建了 .bashrc 文件。

关于linux - 每个命令都会产生段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26555487/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com