How to Install boost via Homebrew? - boost

Installing boost failed.
==> Exit Status: 1http://github.com/mxcl/homebrew/blob/master/Library/Formula/boost.rb#L69
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 97fa532a10613cd314f08b15b06a20b866919689
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.8
Kernel Architecture: i386
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.0.2
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /Developer/usr/bin/llvm-gcc => /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /Developer/usr/bin/llvm-g++ => /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /Developer/usr/bin/llvm-gcc => /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
Error: Failed executing: ./bjam --prefix=/usr/local/Cellar/boost/1.47.0 --libdir=/usr/local/Cellar/boost/1.47.0/lib -j2 --layout=tagged --user-config=user-config.jam threading=multi install
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
How can I install boost?
System Version: Mac OS X 10.6.8 (10K549)
Kernel Vesion: Darwin 10.8.0

Sharpie fixed this!
https://github.com/mxcl/homebrew/issues/7633
It's my local python's problem. (I understand)
I use the --without-python option and I can install boost.

Related

How install crfsuite on Mac OS Monterey M1

brew install fails on M1 Mac with Monterey and Xcode installed for arm64 arch
tried various options to get it work, but didn't work those.
Other details:
cmake: 3.22.2
clang:
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
autoconf: 2.71
make: 3.81
arch: arm64
lingamoorthi.ankam#LingamorthysMBP ~ % brew install crfsuite
...
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I. -I./include -mfpmath=sse -msse2 -DUSE_SSE -O3 -fomit-frame-pointer -ffast-math -Winline -std=c99 -c src/lookup3.c -fno-common -DPIC -o .libs/libcqdb_la-lookup3.o
error: unknown FP unit 'sse'
error: unknown FP unit 'sse'
make[1]: *** [libcqdb_la-cqdb.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libcqdb_la-lookup3.lo] Error 1
make: *** [install-recursive] Error 1
lingamoorthi.ankam#LingamorthysMBP ~ %
also in the similar way liblbfgs(crfsuite dependency) also failed, but manually installing it succeeded.
All tools installed are uptodate.
lingamoorthi.ankam#LingamorthysMBP ~ % cmake --version
cmake version 3.22.2
...
lingamoorthi.ankam#LingamorthysMBP ~ % automake --version
automake (GNU automake) 1.16.5
...
lingamoorthi.ankam#LingamorthysMBP ~ % clang --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
lingamoorthi.ankam#LingamorthysMBP ~ % autoconf --version
autoconf (GNU Autoconf) 2.71
...
lingamoorthi.ankam#LingamorthysMBP ~ % make --version
...
This program built for i386-apple-darwin11.3.0
You might want to try to disable sse2
Here is a suggestion
brew install crfsuite
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and brewsci/science).
You have 6 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
==> Downloading https://github.com/downloads/chokkan/crfsuite/crfsuite-0.12.tar.
Already downloaded: /Users/foo/Library/Caches/Homebrew/downloads/3b692f540345f335f203e8aa30a52e7279cba5d08e285130f811a02b565d8c46--crfsuite-0.12.tar.gz
==> Installing crfsuite from brewsci/science
==> ./configure --prefix=/opt/homebrew/Cellar/crfsuite/0.12
==> make install
...
error: unknown FP unit 'sse'
error: unknown FP unit 'sse'
make[1]: *** [libcqdb_la-cqdb.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libcqdb_la-lookup3.lo] Error 1
make: *** [install-recursive] Error 1
Untar the downloaded crfsuite package
tar xvfz /Users/foo/Library/Caches/Homebrew/downloads/3b692f540345f335f203e8aa30a52e7279cba5d08e285130f811a02b565d8c46--crfsuite-0.12.tar.gz
Configure with disabled sse2 and other flags then make and install
cd crfsuite-0.12
./configure --prefix=$HOME/local --disable-shared --with-pic --disable-sse2
make
make install
Run ./configure --help to get details of parameters

How to deal with "clang: error: unsupported option '-fopenmp'" on travis?

I am currently trying to deploy a project using openmp. I have the flag '-fopenmp' on Travis.
How could I fix that ?
In local I just brew install libopenmp which solved the issue. But not on Travis, what are the options ?
Using cython I got the following ".travis.yml"
os: linux
dist: xenial
language: python
python:
- "3.7"
cache: pip
addons:
apt:
packages:
- patchelf
matrix:
include:
- os: osx
# No version of Python is available via virtualenv on OS X workers, see https://github.com/travis-ci/travis-ci/issues/2312
language: generic
env: TOXENV=py37
fast_finish: true
before_install:
brew install libomp
install:
- pip install --upgrade "pip < 19.1" -r CI/requirements.txt
- python setup.py develop
script:
- pytest
Travis fails while executing :
clang -fno-strict-aliasing -fno-common -dynamic -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl#1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python#2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cpt/alphabet.c -o build/temp.macosx-10.13-x86_64-2.7/cpt/alphabet.o -fopenmp
While in local it compiles with python 3.7, how could I fix that aswell ?
On apple's llvm, -fopenmp is not supported. One should use brew's llvm.
The following ables to link openmp:
- brew install llvm libomp
- export CPP=/usr/local/opt/llvm/bin/clang;
For reference, the issue where there are all the commands: https://github.com/bluesheeptoken/CPT/issues/68#issuecomment-563342866

Neovim crashes after :help command when RubyGem is installed

Cause of the problem
The problem is caused by some plugin called LustyExplorer. Normally, when I encounter some bug in Vim I always remove all plugins and customizations first. But after passing to Neovim, I forgot to do this first.
Original Question
I have just recently installed nvim 0.2.2 on OsX El Capitan v10.11.6 using the command: brew install neovim
$ brew info neovim
neovim: stable 0.2.2 (bottled), HEAD
Ambitious Vim-fork focused on extensibility and agility
https://neovim.io/
/usr/local/Cellar/neovim/0.2.2 (1,374 files, 17.6MB) *
Poured from bottle on 2017-12-27 at 22:45:13
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/neovim.rb
==> Dependencies
Build: cmake ✘, lua#5.1 ✘, pkg-config ✔
Required: gettext ✔, jemalloc ✔, libtermkey ✔, libuv ✔, libvterm ✔, luajit ✔, msgpack ✔, unibilium ✔
$ nvim --version
NVIM v0.2.2
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20171118-36724-uevp4/neovim-0.2.2/build/config -I/tmp/neovim-20171118-36724-uevp4/neovim-0.2.2/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20171118-36724-uevp4/neovim-0.2.2/build/src/nvim/auto -I/tmp/neovim-20171118-36724-uevp4/neovim-0.2.2/build/include
Compiled by brew#ElCapitan-2.local
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2/share/nvim"
Run :checkhealth for more info
nvim runs properly. But after installing neovim RubyGem, I cannot use :help command in neovim. The application crashes immediately:
$ gem install neovim
Fetching: neovim-0.6.2.gem (100%)
Successfully installed neovim-0.6.2
1 gem installed
Executing :help command in nvim gives the following error message:
nvim(69661,0x7fff7274e000) malloc: *** error for object 0x7f9414310d00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 69661 abort nvim
I use rvm 1.26.11 to manage ruby.
$ rvm list
rvm rubies
=* ruby-2.1.1 [ x86_64 ]
$ rvm --version
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
$ rvm gemdir
/Users/mertnuhoglu/.rvm/gems/ruby-2.1.1
$ gem --version
2.4.8

unable to install capybara-webkit on OS X El Capitan

I am having problem with installing capybara-webkit after upgrading to El Capitan. QT version qt-4.8.7_1 already installed. bundle install gives permission error and sudo gem install gives onother error:
bundle install:
~/P/m/web-automation (responsive ⚡=) bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Resolving dependencies...
....
Installing capybara-webkit 1.7.1 with native extensions
Errno::EACCES: Permission denied # rb_sysopen - /usr/local/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.7.1/.gitignore
An error occurred while installing capybara-webkit (1.7.1), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '1.7.1'` succeeds before bundling.
gem install:
~/P/m/web-automation (responsive ⚡=) sudo gem install capybara-webkit -v '1.7.1'
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.7.1
/usr/local/opt/ruby/bin/ruby -r ./siteconf20151201-8173-19fj5gv.rb extconf.rb
cd src/ && /usr/local/bin/qmake /usr/local/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.7.1/src/webkit_server.pro LIBS\ +=\ -L/usr/local/opt/libyaml/lib\ -L/usr/local/opt/openssl/lib\ -L/usr/local/opt/readline/lib -o Makefile.webkit_server
cd src/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webkit_server
clang++ -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.7_1/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/4.8.7_1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/include -Ibuild -F/usr/local/Cellar/qt/4.8.7_1/lib -x c++-header -c stable.h -o build/webkit_server/c++.pch
clang -pipe -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.7_1/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/4.8.7_1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/lib/QtWebKit.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.7_1/include -Ibuild -F/usr/local/Cellar/qt/4.8.7_1/lib -x objective-c++-header -c stable.h -o build/webkit_server/objective-c++.pch
for full log: enter link description here
$ brew install qt
$ brew link --overwrite qt
$ bundle install
Worked for me (rbenv / Yosemite 10.10.5 (14F27))
In short:
$ brew upgrade
$ which qmake
$ rm `which qmake`
$ brew install qt5
$ brew link --force qt5
$ bundle install
Based on:
capybara-webkit が bundle install できなかった話
OS X El Capitan 10.11 and Yosemite 10.10
P.S. And as a principal workaround - use Poltergeist. They have binary packets for any OS and 0 issues with installation.

brew in not working for me OSX 10.7

I have installed xcode 4.3 and its running but when I do brew install wget. I get
==> Downloading http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable
configure: configuring for GNU Wget 1.13.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin11.3.0
checking host system type... x86_64-apple-darwin11.3.0
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/homebrew-wget-1.13.4-PMov/wget-1.13.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> Exit Status: 77
http://github.com/mxcl/homebrew/blob/master/Library/Formula/wget.rb#L24
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 3.2.2
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: N/A
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-249
/usr/bin/ruby => /Sy
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Build Flags
CC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CXX: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
LD: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j4
Error: Failed executing: ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable-iri
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
We saved the configure log, please gist it if you report the issue:
~/Library/Logs/Homebrew/config.log
Please help me to fix this. I have installed the new OS and xcode 4.3.
You need to install the CLI tools. Open Preferences in Xcode, go to Downloads and install the "Command Line Tools".
You need to add the Command Line Developer Tools Package, then this can easily be done via terminal:
xcode-select --install
xcode-select --install did not work for me.
visit https://developer.apple.com/download/all/?q=command%20line%20tools and download the install.
After that, it just take less than 30 min.

Resources