I need to build Erlang R16B02 on OSX 10.10.5 with support for SSL so I can use crypto application. I have already installed OpenSSL 0.9.8 with Homebrew. Running openssl > version yields the following:
$ openssl
OpenSSL> version
OpenSSL 0.9.8zg 14 July 2015
I am able to get Erlang R16B02 built and installed, but I consistently get the same error when trying to start the crypto application:
1> crypto:start().
** exception error: undefined function crypto:start/0
2>
=ERROR REPORT==== 1-Feb-2016::14:19:17 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'dlopen(~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so, 2): Symbol not found: _AES_cbc_encrypt
Referenced from: ~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so
Expected in: flat namespace
in ~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so'"
OpenSSL might not be installed on this system.
=ERROR REPORT==== 1-Feb-2016::14:19:17 ===
The on_load function for module crypto returned {error,
{load_failed,
"Failed to load NIF library: 'dlopen(~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so, 2): Symbol not found: _AES_cbc_encrypt\n Referenced from: ~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so\n Expected in: flat namespace\n in ~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so'"}}
I have tried calling other functions, like crypto:module_info(), but I always get the same error. I have built Erlang R16B02 with various flags using asdf. Here a couple combinations I tried:
Building with options: --enable-dynamic-ssl-lib --prefix=~/.asdf/installs/erlang/R16B02
Building with options: --with-ssl=/usr/local/opt/openssl --prefix=~/.asdf/installs/erlang/R16B02 # with-ssl points to the OpenSSL install
Building with options: --with-ssl --prefix=~/.asdf/installs/erlang/R16B02
All of these resulted in the same error. One strange thing I noticed when I was trying to figure out how to get Erlang built with SSL was the --enable-darwin-64bit and the --enable-darwin-universal flags caused the build to fail. This seems odd as I am building on OSX, so it seems like these flags would be required.
So to recap:
I am using asdf (shouldn't really matter though)
With all the successfully builds I get the error above when invoking any function in the crypto module
I have Erlang 17 built with OpenSSL and the crypto application
Update
I came across this https://gist.github.com/ThePicard/7378417 so I tried a couple of the options listed there for the configure script but I still got the same error.
Update 2
otool -L ~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so prints this:
~/.asdf/installs/erlang/R16B02/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
Related
I am trying to install LightGBM GPU version on Windows systems (I am using Anaconda on Windows for Python). I followed the installation guide from the beginning.
I have succefully completed the first two tasks:
Install the appropriate OpenCL SDK
Install MinGW
However, I encountered error after this command for Boost Compilation:
b2 install --build_dir="C:\boost\boost-build" --prefix="C:\boost\boost-build" toolset=gcc --with=filesystem,system threading=multi --layout=system release
The Error Message are as followed:
error: Name clash for 'libboost_atomic.a'
error:
error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error: - 64
error: - 32
error:
error: Please make sure to have consistent requirements for these
error: properties everywhere in your project, especially for install
error: targets.
Please share me any suggestions on how should I rectify the problem?
I followed this guide: https://docs.sonarqube.org/display/PLUG/SonarCFamily+for+Objective-C
However, when performing xcodebuild with the wrapper:
build-wrapper-macosx-x86 --out-dir ./bw_output xcrun xcodebuild
I get the following error:
dyld: warning: could not load inserted library 'somepath/libinterceptor.dylib' into library validated process because no suitable image found. Did find:
somepath/libinterceptor.dylib: code signing blocked mmap() of 'somepath/build-wrapper-macosx-x86/libinterceptor.dylib'
somepath/libinterceptor.dylib: stat() failed with errno=1
It seems to be related to the lack of a codesignature being present for the libinterceptor.dylib. (codesign -v verifies this).
How can I get a signed version of this wrapper or force MacOSX to load this unsigned library?
I have openssl 1.0.1e-42.el6 already installed. Also tried to compile openssl from ext/openssl directory which failed with below error
ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:815: error: for each function it appears in.)
make: *** [ossl_pkey_ec.o] Error 1
Is there any workaround for this problem ? or is this a compatibility problem with ruby 1.8.7-p358 and openssl 1.0.1e-42.el6. Due to this I am unable to install phusion passenger
Fixed the above issue by applying the patch.
Refer link https://bugs.ruby-lang.org/issues/8384
You have to download the out.patch file to ruby source ext/openssl folder and run patch < out.patch command. Then compile openssl
I am compiling some C++ code on Mac OX Snow Leopard (MacPorts).
I got error message:
collect2: error: ld terminated with signal 5 [Trace/BPT trap]
dyld: Library not loaded: /opt/local/lib/libffi.5.dylib
Referenced from: /opt/local/libexec/llvm-3.3/lib/libLTO.dylib
Reason: image not found
I know libffi was updated to a newer version which now provides libffi version 6 that I have now.
Any help? Thanks.
Try 'sudo port rev-upgrade' first.* This should identify missing / mis-linked files and rebuild the required ports. (Will use pre-compiled binaries rather than build when permitted by licenses and config.)
In general, you may find the mailing list the most productive place to ask these questions. https://lists.macosforge.org/mailman/listinfo/macports-users
actually, do 'sudo port selfupdate && sudo port upgrade outdated' first if you haven't recently.
I have installed PDL on a Mac OS X (10.7.3) machine. Evidently the SciPDL installer places PDL.pm in /Library/Perl/5.12/darwin-thread-multi-2level, so I added
use lib '/Library/Perl/5.12/darwin-thread-multi-2level';
at the top of my test script. I now get these errors:
dyld: lazy symbol binding failed: Symbol not found: _Perl_Gthr_key_ptr
Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Core/Core.bundle
Expected in: flat namespace
dyld: Symbol not found: _Perl_Gthr_key_ptr
Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/PDL/Core/Core.bundle
Expected in: flat namespace
Unfortunately these errors don't mean much to me. What do they mean? And what's the solution?
Use cpanm to install modules instead of the SciPDL installer. Install cpanm:
either bootstrap from the Web:
curl -L http://cpanmin.us | perl - --self-upgrade
or with the CPAN client that ships with Perl:
cpan App::cpanminus
Install PDL:
cpanm PDL
This compiles PDL for your specific platform, making sure all the paths are set properly.