Been getting an error everytime I try to run 'rails server'
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap: 6
I have tried following the other tips such as bundle install and update but still same problem. Tried to rvm install 1.9.3 and got:
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required packages: gcc49.......
Error running 'requirements_osx_brew_libs_install gcc49',
showing last 15 lines of /Users/Quoc/.rvm/log/1457707600_ruby-1.9.3-p551/package_install_gcc49.log
++ case "$1" in
++ [[ -t 1 ]]
++ return 1
++ printf %b 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.
Brew repair didnt work either.
EDIT: result from running brew install gcc46 --env=std
==> make bootstrap
Last 15 lines from /Users/Quoc/Library/Logs/Homebrew/gcc46/02.make:
_lto_end_uncompression in libbackend.a(lto-compress.o)
"_inflateEnd", referenced from:
_lto_end_uncompression in libbackend.a(lto-compress.o)
"_inflateInit_", referenced from:
_lto_end_uncompression in libbackend.a(lto-compress.o)
"_zError", referenced from:
_lto_end_compression in libbackend.a(lto-compress.o)
_lto_end_uncompression in libbackend.a(lto-compress.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [cc1] Error 1
rm gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
You have to install these dependences manually, try
brew install automake
if it gives you error of missing link of automake something like this
You must brew link autoconf before automake can be installed
then try these commands
brew link --overwrite --dry-run autoconf
brew link --overwrite autoconf
brew install automake
it will install automake and then you can try again to install ruby.
If it doesn't work you can try another thing:
Sol2:
brew install gcc46 --env=std
brew install gcc; brew install gcc46 --cc=gcc-4.9
Manually build GCC 4.6 outside of Homebrew, using the same configure switches
Also you can try with this :
$ brew install gcc
$ CC=/usr/local/bin/gcc-4.9 rvm install 1.9.1-p376 --enable-shared
Related
For example, I tried to run brew upgrade ruby-build.
That failed with error:
CompilerSelectionError: ruby-build cannot be built with any available compilers.
Install GNU's GCC
brew install gcc
When I ran brew install gcc , I got:
Warning: Building gcc from source:
The bottle needs the Xcode CLT to be installed.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
CompilerSelectionError: gcc cannot be built with any available compilers.
Install GNU's GCC
brew install gcc
How can I upgrade ruby-build via brew?
I ran this command and it now works:
xcode-select --install
I had to reset xcode to the default command line tools path with
sudo xcode-select -r
for this to work
I have tried to upgrade the Ruby version on an old Mac I got, but without any success.
I know its possible because of this guy here asking how to upgrade from 2.2
Here is what I entered in the Terminal:
rvm install 2.0.0
Result:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p648.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system................
Installing required packages: coreutils.....There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
...
Error running 'requirements_osx_brew_libs_install coreutils',
please read /Users/DAN26/.rvm/log/1503823469_ruby-2.0.0-p648/package_install_coreutils.log
Requirements installation failed with status: 1.
Seems like "coreutils" is missing so I manage to install it by my self, however without success:
brew install coreutils
==> Downloading https://ftp.gnu.org/gnu/coreutils/coreutils-8.27.tar.xz
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils-8.27.tar.xz
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--patch-df9bedeae2ca6d335147b5b4c3f19db2f36ff8c84973fd15fe1697de70538247.diff
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--patch-f7e2b21f04085f589c3d10c2f6ac5a4185e2b907e8bdb5bb6e4f93888d7ab546.diff
==> Patching
==> Applying patch-m4_gnulib-comp.m4-add-renameat.diff
patching file m4/gnulib-comp.m4
==> Applying patch-lib_gnulib.mk-add-renameat.c.diff
patching file lib/gnulib.mk
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--renameat_c-8.27.c
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--renameat_m4-8.27.m4
==> autoreconf -fiv
==> ./configure --prefix=/usr/local/Cellar/coreutils/8.27 --program-prefix=g --without-gmp
==> make install
Last 15 lines from /Users/DAN26/Library/Logs/Homebrew/coreutils/03.make:
src/ginstall -c src/truncate '/usr/local/Cellar/coreutils/8.27/bin/./gtruncate'
src/ginstall -c src/tsort '/usr/local/Cellar/coreutils/8.27/bin/./gtsort'
src/ginstall -c src/tty '/usr/local/Cellar/coreutils/8.27/bin/./gtty'
src/ginstall -c src/uname '/usr/local/Cellar/coreutils/8.27/bin/./guname'
src/ginstall -c src/unexpand '/usr/local/Cellar/coreutils/8.27/bin/./gunexpand'
src/ginstall -c src/uniq '/usr/local/Cellar/coreutils/8.27/bin/./guniq'
src/ginstall -c src/unlink '/usr/local/Cellar/coreutils/8.27/bin/./gunlink'
src/ginstall -c src/vdir '/usr/local/Cellar/coreutils/8.27/bin/./gvdir'
src/ginstall -c src/wc '/usr/local/Cellar/coreutils/8.27/bin/./gwc'
src/ginstall -c src/whoami '/usr/local/Cellar/coreutils/8.27/bin/./gwhoami'
src/ginstall -c src/yes '/usr/local/Cellar/coreutils/8.27/bin/./gyes'
src/ginstall -c src/ginstall '/usr/local/Cellar/coreutils/8.27/bin'
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Also I have tried to follow the steps for installing coreutils from source by this comment
wget https://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz
tar xJf coreutils-8.25.tar.xz
cd coreutils-8.25/
./configure --prefix=/usr/local
make
sudo make install
But after that retry to install Ruby 2.0.0 fail again for the same reason.
Can someone please help me to solve this problem?
Homebrew doesn’t support macOS 10.7. You can use Tigerbrew, a fork of Homebrew "that adds support for PowerPC Macs, and Macs running Tiger or Leopard" (quoting its homepage).
As a prereq to octave, I need to install veclibfort:
brew install veclibfort
I get the error
==> make check
gfortran -o tester -O tester.f90 vecLibFort.o -framework vecLib
make: gfortran: No such file or directory
make: *** [check] Error 1
That error sounds like I don't have gfortran installed, but I do. If I run gfortran -v:
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/4.8.3/libexec/gcc/x86_64-apple-darwin13.2.0/4.8.3/lto-wrapper
Target: x86_64-apple-darwin13.2.0
Configured with: ../configure --build=x86_64-apple-darwin13.2.0 --(snip)
Thread model: posix
gcc version 4.8.3 (GCC)
This issue seems to be addressed here:
https://github.com/Homebrew/homebrew-science/issues/992
but there doesn't seem to be a relevant solution.
I simply had to reinstall gcc:
brew uninstall gcc
brew install gcc
After that veclibfort installed perfectly. thanks to kmm for the answer. He posted as a comment, I'm posting as an answer that I can mark as accepted.
I had brewed version of python 2.7.6 installed on OS X mavericks and now am trying to install gdb with --with-brewed-python option.
But I am getting the following error message. Why it is checking python in /usr/local instead of /usr/local/bin? I think this is why it is failing. Anyone has any idea?
brew install gdb --with-brewed-python
==> Downloading http://ftpmirror.gnu.org/gdb/gdb-7.6.2.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/gdb/7.6.2 --with-system-readline --with-python=/usr/local
==> make
checking whether to use python... /usr/local
checking for python2.7... no
configure: error: no usable python found at /usr/local
make[1]: *** [configure-gdb] Error 1
make: *** [all] Error 2
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/homebrew/homebrew-dupes/issues
try: brew -v install --with-brewed-python gdb
https://github.com/Homebrew/homebrew-dupes/issues/277
I'm trying to install opencv by brew ,
but showed me the following errors.
I knew i should tap "brew tap homebrew/homebrew-science"
but it didn't work.
is there any idea , or should i show what information by what command to fix the problem quickly.
thanks~
[local] $ brew update
Error: Permission denied - /var/folders/wt/ffjhmkgx4292wtm22b966mdc0000gn/T/.gitignore20130904-819-fdlv65-0 or /usr/local/Library/Formula/.gitignore
[local] $ sudo brew update
Already up-to-date.
[local] $ sudo brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
[local] $ brew tap homebrew/homebrew-science
Error: Already tapped!
[local] $ sudo brew tap homebrew/homebrew-science
Error: Already tapped!
[local] $ sudo brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
[local] $ brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
if I tried to make manually by the tutorial http://tilomitra.com/opencv-on-mac-osx/
I will see the error after make -j8
_ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)
"_xvid_plugin_lumimasking", referenced from:
_xvid_encode_init in libavcodec.a(libxvid.o)
"_xvid_plugin_single", referenced from:
_xvid_encode_init in libavcodec.a(libxvid.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopencv_highgui.2.4.6.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
I have recently encountered a similar problem building OpenCV using brew. The central issue was that OpenCV would not build properly when building against ffmpeg (it will try to do this if ffmpeg is also installed.)
As suggested here, the problem can be resolved by using the following brew command to build OpenCV, which forces an alternative version of the build environment (one of the top troubleshooting suggestions for brew):
brew install opencv --env=std
Hope this works for you too!