Git Product home page Git Product logo

Comments (15)

sjackman avatar sjackman commented on September 27, 2024

Please enclose copy-and-paste blocks in triple back ticks.
See https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

What does brew install gcc report?

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

thank for your help, here the report

brew install gcc

==> Installing dependencies for gcc: glibc, xz, m4, gmp, mpfr, libmpc, isl
==> Installing gcc dependency: glibc
Error: glibc cannot be built with any available compilers.
Install Clang or brew install gcc

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

Try following these instructions for CentOS6. They should hopefully also work for SUSE Linux Enterprise Server 11.
https://github.com/Linuxbrew/brew/wiki/CentOS6#install-linuxbrew-on-centos-6-without-sudo

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

I notice that you don't have glibc installed. Have you been using this installation of Linuxbrew for a while without glibc installed?

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

This is a fresh installation. Only, I installed and then brew install gcc

I tried reinstall following the instruction for CentOS6 without success.

HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_BUILD_FROM_SOURCE=1 brew install gcc --without-glibc
==> Installing dependencies for gcc: bzip2, zlib, xz, m4, gmp, mpfr, libmpc, isl
==> Installing gcc dependency: bzip2
==> Downloading http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
######################################################################## 100.0%
==> make install PREFIX=/home/pfreitas/.linuxbrew/Cellar/bzip2/1.0.6_1
==> make -f Makefile-libbz2_so clean
==> make -f Makefile-libbz2_so
🍺  /home/pfreitas/.linuxbrew/Cellar/bzip2/1.0.6_1: 30 files, 1.4MB, built in 14 seconds
==> Installing gcc dependency: zlib
==> Downloading https://zlib.net/zlib-1.2.11.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/home/pfreitas/.linuxbrew/Cellar/zlib/1.2.11
==> make install
🍺  /home/pfreitas/.linuxbrew/Cellar/zlib/1.2.11: 12 files, 464.9KB, built in 11 seconds
==> Installing gcc dependency: xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz
Error: bad URI(is not URI?): https://downloads.sourceforge.net/#!/#!/project/lzmautils/xz-5.2.3.tar.gz
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/generic.rb:1203:in `rescue in merge'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/generic.rb:1200:in `merge'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/common.rb:237:in `each'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/common.rb:237:in `inject'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/common.rb:237:in `join'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/uri/common.rb:785:in `join'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:404:in `block in actual_urls'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:403:in `map'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:403:in `actual_urls'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:378:in `_fetch'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:336:in `fetch'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:115:in `fetch'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:84:in `stage'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1884:in `stage'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1088:in `brew'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/build.rb:127:in `block in install'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:556:in `with_env'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/build.rb:124:in `install'
/home/pfreitas/.linuxbrew/Homebrew/Library/Homebrew/build.rb:201:in `<main>'

As I said, I had a previous working installation but I used brew uninstall gcc and then when I tried to use brew doesn't work anymore. I uninstalled linuxbrew and did this new installation.
After uninstall and install again linuxbrew the brew config show me glibc and gcc as not installed!

Host glibc: 2.11
/usr/bin/gcc: 4.3.4
glibc: N/A
gcc: N/A
xorg: N/A

Thanks

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz
Error: bad URI(is not URI?): https://downloads.sourceforge.net/#!/#!/project/lzmautils/xz-5.2.3.tar.gz

That's a super weird error message. I've definitely not seen that error before.
Can you please report the output of brew fetch -s xz?

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

Of course!

brew fetch -s xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz
==> Downloading from https://downloads.sourceforge.net/#!/project/lzmautils/xz-5.2.3.tar.gz
######################################################################## 100.0%
Downloaded to: /home/pfreitas/.cache/Homebrew/xz-5.2.3.tar.gz
SHA256: 7a07d3f7cca5c0b38ca811984ef8da536da32932d68c1a6cce33ec2462b930bf
Warning: Formula reports different SHA256: 71928b357d0a09a12a4b4c5fafca8c31c19b0e7d3b8ebb19622e96f26dbf28cb

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

I see the same warning, so I guess you can ignore that for now. Try again

HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_BUILD_FROM_SOURCE=1 brew install gcc --without-glibc

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

I obtained

==> Installing dependencies for gcc: xz, m4, gmp, mpfr, libmpc, isl
==> Installing gcc dependency: xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz
Already downloaded: /home/pfreitas/.cache/Homebrew/xz-5.2.3.tar.gz
Error: SHA256 mismatch
Expected: 71928b357d0a09a12a4b4c5fafca8c31c19b0e7d3b8ebb19622e96f26dbf28cb
Actual: 7a07d3f7cca5c0b38ca811984ef8da536da32932d68c1a6cce33ec2462b930bf
Archive: /home/pfreitas/.cache/Homebrew/xz-5.2.3.tar.gz
To retry an incomplete download, remove the file above.

I removed the file, and try again, but back to the initial error

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024
We're sorry -- the Sourceforge site is currently in Disaster Recovery mode

Looks like SourceForge is down for now. You may have to wait until it's back up. In the mean time as a work around, try this…

HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_BUILD_FROM_SOURCE=1 brew install --ignore-dependencies zlib gmp mpfr libmpc isl gcc --without-glibc

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

OK, I will wait for SourceForge back

here the result for

HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_BUILD_FROM_SOURCE=1 brew install --ignore-dependencies zlib gmp mpfr libmpc isl gcc --without-glibc
Warning: zlib 1.2.11 is already installed
Warning: gmp: this formula has no --without-glibc option so it will be ignored!
==> Downloading https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz
######################################################################## 100.0%
Error: No such file or directory - /home/pfreitas/.linuxbrew/opt/xz/bin/xz

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

Unless you have xz installed somewhere else, you're stuck until Sourceforge comes back online.

from legacy-linuxbrew.

jolobito avatar jolobito commented on September 27, 2024

Yes, I have installed xz 5.2.2 installed in my anaconda distro.
How can I know if the Sourceforge is come back?

from legacy-linuxbrew.

sjackman avatar sjackman commented on September 27, 2024

brew fetch -s xz will succeed and not give a Error: SHA256 mismatch
In the mean time, you may be able to brew edit xz and delete or comment out the sourceforge line. There's a mirror that you can use.

brew edit xz
rm -f /home/pfreitas/.cache/Homebrew/xz-5.2.3.tar.gz
brew fetch -s xz

from legacy-linuxbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.