I am running into an issue that I haven't previously had with over 6+ months of using asdf on osx. I need to install Erlang 21.3.7.1 and when I do I get this error output from the console that I honestly don't know how to solve:
Me#My-MacBook-Pro:~/Code/codebase|master
⇒ asdf install erlang 21.3.7.1
Downloading kerl...
Downloading OTP-21.3.7.1.tar.gz to /Users/Me/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 523 0 --:--:-- --:--:-- --:--:-- 523
100 51.5M 0 51.5M 0 0 8541k 0 --:--:-- 0:00:06 --:--:-- 9657k
Extracting source code
Building Erlang/OTP 21.3.7.1 (asdf_21.3.7.1), please wait...
DOCUMENTATION INFORMATION (See: /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_build_21.3.7.1.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
GEN obj/x86_64-apple-darwin19.4.0/opt/MADE
LD /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator_profile_generate] Error 2
Nothing I found on the Erlang/Elixir/asdf forums was particularly helpful. asdf was installed with homebrew. I can install the ref:maint build and change my .tool-version to match but that sets off a whole slew of other issues with Crypto and openssl not being found even though they're installed. Anyone have an idea or two?
It's not possible to build Erlang 21 on Catalina (10.15), according to the comments in this bug report. You can use release 22.3.1 or later.
If you need to use an older Erlang version, you could try applying this change on the Erlang 21 source code.
After upgrading to Catalina I tried installing 22.3.1 but that was not enough for me; somehow Erlang on Catalina could not find OpenSSL.
What I had to do was:
1) Uninstall Erlang 22.3.1 if you have it already:
asdf uninstall erlang 22.3.1
2) Update Xcode to latest version & accept agreement
sudo xcodebuild -license
3) Set --with-ssl flag (copied from the asdf-erlang readme)
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
4) Reinstall Erlang
asdf install erlang 22.3.1
Related
rbenv is not building any version of Ruby on my Mac (Big Sur), although I get different errors depending on the version I attempt to build. For example, the commands I used and their output are below:
simon#Simons-MBP ~ % time rbenv install 3.0.0
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/simon/.rbenv/versions/3.0.0
Downloading ruby-3.0.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
Installing ruby-3.0.0...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 11.2.1 using ruby-build 20210119)
Inspect or clean up the working tree at /var/folders/7x/tj7wsjgj4nl1g3h6sbjdrf8m0000gn/T/ruby-build.20210226164233.16496.FWB6V6
Results logged to /var/folders/7x/tj7wsjgj4nl1g3h6sbjdrf8m0000gn/T/ruby-build.20210226164233.16496.log
The last lines of the log file are as follows:
compiling inspector.c
-e:4:in `write': Interrupted system call # rb_sysopen - failure.failed (Errno::EINTR)
from -e:4:in `<main>'
make[2]: *** [failure.failed] Error 1
make[1]: *** [ext/-test-/cxxanyargs/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling profile_frames.c
compiling empty.c
linking shared-object -test-/dln/empty.bundle
linking shared-object -test-/debug.bundle
make: *** [build-ext] Error 2
Any ideas why I'm getting the Interrupted system call message?
Pause your antivirus and try again. It worked for me.
That file opensslv.h is requested by "make modules bzImage" when trying to compile a new kernel. I had previously done
$ sudo apt-get install update and
$ sudo apt-get install libcurl4-openssl-dev
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
with no problems reported;
This is the error msg given by make modules bzImage after a few seconds:
(...)
HOSTCC scripts/sign-file
scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2
I searched google for the error message; most answers indicate that I should install openssl-dev, which I did. I also searched here for the name of the missing file but answers were not helpful.
I am doing this on ubuntu 16.04, trying to install kernel version linux 4.4.53. Previous steps (installing libncurses5-dev, make menuconfig and make localconfig) gave no problem.
When I tried to install Octave (brew install octave --with-gui --HEAD) on OS X 10.11.2 I got this error:
==> ./configure --prefix=/usr/local/Cellar/octave/HEAD --enable-dependency-tracking --enable-link-al
==> make all DOC_TARGETS=
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/octave/03.make:
GEN scripts/plot/util/gnuplot_binary.m
GEN doc/interpreter/contributors.texi
GEN etc/icons/octave-logo-256.png
./build-aux/missing: line 81: rsvg-convert: command not found
WARNING: 'rsvg-convert' is missing on your system.
You might have modified some files without having the proper
tools for further handling them. Check the 'README' file, it
often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in
case some other package contains this missing 'rsvg-convert' program.
make[2]: *** [etc/icons/octave-logo-256.png] Error 127
make[2]: *** Waiting for unfinished jobs....
Updating ./doc/liboctave/version-liboctave.texi
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Just install this lib:
brew install librsvg
I want to install the GitLab Runner for CI on my RPI 2 machine running Raspbian.
There is no armhf package available or mentioned on the official page: https://gitlab.com/gitlab-org/omnibus-gitlab-runner/blob/master/doc/install/README.md
and I could not find one on the net.
I've tried building it from source but it failed to make ruby 2.1.5
Tried to install it as per the follwing guide:
http://qiita.com/honeniq/items/b5c767f947725280662e
but it fails:
Installing ruby-2.1.5...
BUILD FAILED (Raspbian GNU/Linux 7 using ruby-build 20150519-11-g6f1ed3d)
Inspect or clean up the working tree at /tmp/ruby-build.20150616110149.29126
Results logged to /tmp/ruby-build.20150616110149.29126.log
Last 10 log lines:
make[1]: Nothing to be done for 'srcs'.
make[1]: Leaving directory '/tmp/ruby-build.20150616110149.29126/ruby-2.1.5'
generating transdb.h
linking static-library libruby-static.a
verifying static-library libruby-static.a
collect2: ld returned 1 exit status
Makefile:217: recipe for target 'libruby-static.a' failed
make: *** [libruby-static.a] Error 1
make: *** Waiting for unfinished jobs....
transdb.h unchanged
Have any of you managed to install and run the CI runner?
Managed to install an unofficial runner.
Guide here:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-manually.md
You need to have an account and be signed in in order to be able to read the guide.
I am trying to install ogre v1.9 using homebrew. brew install ogre --HEAD
At some point I get the following errors:
duplicate symbol __ZN4Ogre18ControllerFunctionIfE16getAdjustedInputEf in:
CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o
duplicate symbol __ZN4Ogre18ControllerFunctionIdE16getAdjustedInputEd in:
CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o
...
ld: 564 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/macosx/Ogre.framework/Versions/1.9.0/Ogre] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
==> Formula
Tap: osrf/homebrew-simulation
Path: /usr/local/Library/Taps/osrf/homebrew-simulation/ogre.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 01dd3e19f8e600c3f44a3b140103f330aa32447c
Last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.10.2-x86_64
Xcode: N/A
CLT: 6.2.0.0.1.1424975374
Clang: 6.0 build 600
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/libzzip/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/opt/X11/lib/pk gconfig:/opt/X11/share/pkgconfig
ACLOCAL_PATH: /usr/local/share/aclocal:/opt/X11/share/aclocal
PATH:/usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/doxygen/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/libzzip/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Error: ogre HEAD did not build
The errors are so many and all in OgreAlignedAllocator.cpp.o. I think there is something defined twice. I tried to uninstall all OGRE dependencies and reinstall them again, but I still get the same error.
Any suggestion how can I solve or debug this kind of error?
Ok! It was a mess in the last commit, I checked out a previous revision and it works.