brew install v8 : make: *** [out/Makefile.native] Error 127 - makefile

When I used the command: brew install v8, I got the output as follows:
==> Downloading https://github.com/v8/v8/archive/3.19.18.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/v8-3.19.18.4.tar.gz
==> make dependencies
==> make native -j8 library=shared snapshot=on console=readline
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. -S.native -Dcomponent=shared_library - Dconsole=readline -Dv8_enable_backtrace=1 -Darm_fpu=default -Darm_float_abi=default
env: python: No such file or directory
make: *** [out/Makefile.native] Error 127
I have install python through homebrew, so I cannot understand why it says: 'python: No such file or directory'
brew --config:
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 2f6dc2694b6af3b827617cfabf8230d6013b137d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

Python is installed but may be is not in your path, you could add this to your PATH variable in your shell startup script like .bashrc
Temporal solution could be to run this inside your shell
export PATH=$PATH:/usr/bin/:/usr/local/bin

Related

Unable to Install python 3.6.8 using pyenv on mac Monterey 12.5.1

I'm trying to install python 3.6.8 using pyenv on mac Monterey 12.5.1 but encountering below error
python-build: use openssl#1.1 from homebrew
python-build: use readline from homebrew
Installing Python-3.6.8...
patching file Misc/NEWS.d/next/macOS/2020-06-24-13-51-57.bpo-41100.mcHdc5.rst
patching file configure
Hunk #1 succeeded at 3375 (offset -51 lines).
patching file configure.ac
Hunk #1 succeeded at 495 (offset -15 lines).
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.5.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/7h/p55vm3356_jg4jns3n8vngzm0000gp/T/python-build.20220823112323.4068
Results logged to /var/folders/7h/p55vm3356_jg4jns3n8vngzm0000gp/T/python-build.20220823112323.4068.log
Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:
By default, distutils will build C++ extension modules with "clang++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found. Stop.
I have tried to reinstall pyenv but it does not help
I have also tried
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include"
LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib"
pyenv install --patch 3.6.8 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)```
I had similar problem and doing installation by steps from this post helped me. Before following these steps, you better to uninstall all python versions you currently have and pyenv, homebrew.

Permission denied #rb_system when attempt to install httpd using Homebrew

I want to install httpd using Homebrew but I keep getting this error -
Error: Permission denied # rb_sysopen - /tmp/github_api_headers20180612-63207-1943ua6
I tried - sudo chmod -R 1777 /tmp but that is not working
This is the current permission set for /tmp
drwxr-xr-x 8 _mysql _mysql 256 Jun 12 18:39 tmp
Here is some information on my mac air
System Version: macOS 10.13.5 (17F77)
Kernel Version: Darwin 17.6.0
Even when I attempt to update ruby it gives me this error
[2018-06-12 18:13:32] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install ()
{
brew install "$#" --force || {
\typeset ret=$?;
requirements_osx_brew_libs_error "installation";
case "$_system_version" in
10.6)
rvm_warn "
On OSX 10.6 instead of command line tools install:
https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.6.pkg"
;;
esac;
return $ret
}
}
current path: /Users/iivri.andre
PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/iivri.andre/.sdkman/candidates/gradle/current/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/iivri.andre/.rvm/bin
command(10): requirements_osx_brew_libs_install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl#1.1
++ brew install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl#1.1 --force
Error: Permission denied # rb_sysopen - /tmp/github_api_headers20180612-55209-1k19y8s
How can I correct this issue?

brew install collada-dom issue with mac os 10.9

So I have been trying to install collada-dom and I keep running into this issue not matter what I try.....
==> Downloading http://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.4/collada-dom-2.4.0.tgz
######################################################################## 100.0%
==> Patching
patching file CMakeLists.txt
Hunk #1 succeeded at 127 with fuzz 1 (offset 27 lines).
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/collada-dom/2.4.0 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
==> make install
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]: *** [dom/libcollada-dom2.4-dp.2.4.0.dylib] Error 1
make[1]: *** [dom/CMakeFiles/collada-dom.dir/all] Error 2
make: *** [all] Error 2
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 90cf3ba4583eebb429edf58deea63425fa492718
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
Clang: 5.0 build 500
X11: 2.7.5 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
I'm not sure if the patch ( https://github.com/mxcl/homebrew/blob/master/Library/Formula/collada-dom.rb ) fails in 10.9 or it's just a problem with my computer... #help

Cannot install gcc48 with homebrew

I cannot install gcc48 with homebrew. The install fails with
(starting from the last lines in configures output):
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
configure: error: Unable to find a usable ISL. See config.log for details.
==> Formula
Tap: homebrew/versions
Path: /usr/local/Library/Taps/homebrew-versions/gcc48.rb
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: e2b10438666f41366f596fe762b2455f5761bcd8
CPU: 8-core 64-bit sandybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /opt/X11/include/freetype2:/usr/include/libxml2:/opt/X11/include
CMAKE_LIBRARY_PATH: /opt/X11/lib
PKG_CONFIG_PATH: /usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/cloog/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal:/opt/X11/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cloog/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: gcc48 did not build
I do have isl installed.
: brew info isl
isl: stable 0.12, HEAD
http://www.kotnet.org/~skimo/isl/
/usr/local/Cellar/isl/0.12 (55 files, 3.2M) *
Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/isl.rb
==> Dependencies
Required: gmp
GCC has imposed a strict requirement about ISL version. At the time being both 4.8 branch and trunk (4.9) requires ISL 0.10 or 0.11. Homebrew has temporarily reverted ISL to 0.11.2 so it should be fine now.
This isn't restricted to Homebrew. There's a problem with the configure script if cloog-0.18.0 uses the bundled sub-package of isl-0.11.1. The VERSION string is not correctly substituted, and is set to "UNKNOWN" in the isl_version() function call - the value that the gcc configure script is testing.
You might have to build (or install) ISL first, and then add --with-isl-prefix=$SOME_DIR to the cloog configure options, so it uses the external ISL installation. I built gcc-4.8.1 for AVR recently from source, and used:
## isl-0.11.1 # ftp://gcc.gnu.org/pub/gcc/infrastructure/
> ../configure --prefix=$CROSSDIR --with-gmp-prefix=$CROSSDIR
> make [check]; make install; rehash
and now build cloog-0.18.0 with the installed 'system' ISL:
> ../configure --prefix=$CROSSDIR --with-isl-prefix=$CROSSDIR \
--with-gmp-prefix=$CROSSDIR
> make [check]; make install; rehash
This also required adding: --with-isl=$CROSSDIR to the gcc configure options.

How can I upgrade to Autoconf 2.6.2 or higher on Mac OS X 10.6?

My environment is Mac OS X 10.6. I have installed Autoconfig using MacPorts:
sudo port -v selfupdate
sudo port install autoconf
But the autoconf installed is 2.6.1.
My question is how can I upgrade it to 2.6.2?
The program I am trying to compile need autoconf 2.6.2
configure.ac:14: error: Autoconf version 2.62 or higher is required
/opt/local/share/aclocal-1.11/init.m4:110: AM_INIT_AUTOMAKE is expanded from...
configure.ac:14: the top level
autom4te: /Developer/usr/bin/gm4 failed with exit status: 63
aclocal-1.11: autom4te failed with exit status: 63
make[1]: *** [libmpeg2] Error 63
I usually do not bother installing any of the autotools on the system, but install them in $HOME instead. Just grab the autoconf tarball from http://ftp.gnu.org/gnu/autoconf/, unpack it and run:
./configure --prefix=$HOME
make
make install
Make sure $HOME/bin is in your PATH before the system dir, or uninstall autoconf from the system.

Resources