Im having issues to install ZAP add ons using the command gradle tasks after i put cd zaproxy. Im using windows, the goal is for me to plug in owasp zap in eclipse. I already have the owsap zap application installed using the installer x64 bit. Please help as i already referred the official tutorial documentation and youtube video but still couldnt solve the issue.
What I did in gitbash:
`NB MSI#KhairunAqilah-Laptop MINGW64 ~/zaproxy
$ gradle tasks
What I should get:
what i got:
> Task :buildSrc:compileKotlin FAILED
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see https://docs.gradle.org/6.8.3/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/META-INF/gradle.kotlin_module: Module was compiled with an incompatible version of
Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessors26zbplfot43jvv3iww08bvstz.kt: (64, 66): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompat
ible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessors26zbplfot43jvv3iww08bvstz.kt: (65, 40): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompat
ible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsbmeqcrgd7c0p5ndnkkj10dxnn.kt: (64, 26): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inc
ompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsbmeqcrgd7c0p5ndnkkj10dxnn.kt: (65, 6): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inco
mpatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsbmeqcrgd7c0p5ndnkkj10dxnn.kt: (71, 26): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inc
ompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsbmeqcrgd7c0p5ndnkkj10dxnn.kt: (72, 6): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inco
mpatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsc7umvmbh1t2ps42oazl5v7ufw.kt: (64, 62): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inc
ompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsc7umvmbh1t2ps42oazl5v7ufw.kt: (65, 111): Class 'com.install4j.gradle.Install4jExtension' was compiled with an in
compatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\build\generated-sources\kotlin-dsl-accessors\kotlin\gradle\kotlin\dsl\accessors\_e1186a2f8739d9ae78eab335915ef41a\Accessorsc7umvmbh1t2ps42oazl5v7ufw.kt: (71, 79): Class 'com.install4j.gradle.Install4jExtension' was compiled with an inc
ompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jExtension.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\github-releases.gradle.kts: (3, 29): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1
.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\github-releases.gradle.kts: (103, 42): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4
.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\github-releases.gradle.kts: (105, 80): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4
.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\installers.gradle.kts: (3, 29): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\installers.gradle.kts: (109, 41): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\installers.gradle.kts: (110, 9): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\installers.gradle.kts: (111, 9): Class 'com.install4j.gradle.Install4jTask' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.4.1.
The class is loaded from C:/Users/NB MSI/.gradle/caches/modules-2/files-2.1/gradle.plugin.install4j.install4j.buildtools/gradle_publish/10.0.3/508d4dda8e92616f1ad09cff9379b39812888f60/gradle_publish-10.0.3.jar!/com/install4j/gradle/Install4jTask.class
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\test.gradle.kts: (24, 10): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
internal fun Project.sourceSets(configure: Action<SourceSetContainer>): Unit defined in gradle.kotlin.dsl.accessors._566dc064233c60a31df379898f991b12 in file Accessors2oadk7let745pm8ahqypkqzlk.kt
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\test.gradle.kts: (41, 32): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
internal val Project.sourceSets: SourceSetContainer defined in gradle.kotlin.dsl.accessors._566dc064233c60a31df379898f991b12 in file Accessors2oadk7let745pm8ahqypkqzlk.kt
e: C:\Users\NB MSI\zaproxy\buildSrc\src\main\kotlin\org\zaproxy\zap\test.gradle.kts: (42, 26): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
internal val Project.sourceSets: SourceSetContainer defined in gradle.kotlin.dsl.accessors._566dc064233c60a31df379898f991b12 in file Accessors2oadk7let745pm8ahqypkqzlk.kt
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:compileKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
If you pulled the code recently then you may have got it in an inconsistent state as we were in the middle of releasing ZAP 2.12.0. Pull the code now and try again - it should be consistent and work.
Related
I thought my problem was very simple to resolve but it isn't. I'm creating some new components for Xamarin. I have a main Xamarin project where I'm testing my components.
My components are a main portable project and for each platform there is specific implementation.
The implementation for UWP generates a compatibility error
Project PSC.Xam.Controls.BindableRadioButton.UWP is not compatible
with uap10.0 (UAP,Version=v10.0). Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0. Project PSC.Xam.Controls.BindableRadioButton.UWP is
not compatible with uap10.0 (UAP,Version=v10.0) / win10-arm. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-arm). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-arm-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-arm-aot). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x64. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x64). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x64-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x64-aot). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x86. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x86). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x86-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x86-aot). NuGet package restore failed.
I checked the configuration of UWP main project and the implementation project and both are the same settings.
In the implementation project, I have a reference to the portable project and its settings are:
If I deploy the project and run it, it seems working fine on my desktop.
Also, I receive two other errors:
Duplicate Entry
0xdef00532 - Conflicting values for resource 'Files/Xamarin.Forms.Platform.UAP/TabbedPageStyle.xbf' GENERATEPROJECTPRIFILE
I checked my Package.appxmanifest and Dependencies is as requested.
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="10.0.0.0"
MaxVersionTested="10.0.0.0" />
</Dependencies>
In order to use .NET Standard 2.0 in UWP, you need to target Fall Creators Update (FCU) as the minimum version of your UWP project. That’s because .NET Standard 2.0 contains many APIs that require FCU to make them work in the context of the UWP execution environment, specifically AppContainer.
https://blogs.msdn.microsoft.com/dotnet/2017/08/25/uwp-net-standard-2-0-preview/
https://blogs.msdn.microsoft.com/dotnet/2017/10/10/announcing-uwp-support-for-net-standard-2-0/
Find project.json file and replace "uap10.0" with "uap10.0.10586"
Error:
C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.2\agent\Worker\Tools\nuget.exe
failed with return code: 1
Packages failed to install Return code: 1
Delivery_Analytics\Delivery_Analytics\Delivery_Analytics.csproj (0, 0)
Cannot resolve Assembly or Windows Metadata file 'System.Runtime.Handles.dll'
C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets
(264, 5)
Type universe cannot resolve assembly: System.Runtime.Handles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Process 'msbuild.exe' exited with code '1'
2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Cng 4.2.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Encoding 4.0.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Security.Cryptography.Primitives 4.0.0 is not compatible with
UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Collections.NonGeneric 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Collections.Specialized 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5102364Z System.Private.Uri 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5102364Z System.Net.Requests 4.0.11 provides a compile-time reference assembly for System.Net.Requests on
UAP,Version=v10.0, but there is no run-time assembly compatible with
win10-x64-aot.
2016-08-16T12:16:14.5112357Z System.Runtime.WindowsRuntime.UI.Xaml 4.0.1 provides a compile-time reference assembly for System.Runtime.WindowsRuntime.UI.Xaml on UAP,Version=v10.0, but there
is no run-time assembly compatible with win10-x64-aot.
2016-08-16T12:16:14.5112357Z System.IO.Compression 4.1.1 provides a compile-time reference assembly for System.IO.Compression on
UAP,Version=v10.0, but there is no run-time assembly compatible with
win10-x64-aot.
2016-08-16T12:16:14.5412349Z Generating MSBuild file Delivery_Analytics.nuget. targets.
2016-08-16T12:16:14.5432359Z Generating MSBuild file Delivery_Analytics.nuget. props.
2016-08-16T12:16:14.5712346Z ##[debug]rc:1
2016-08-16T12:16:14.5722353Z ##[debug]success:false
2016-08-16T12:16:14.5812337Z ##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.104.1\
agent\ Worker\ Tools\nuget.exe failed with return code: 1
2016-08-16T12:16:14.5812337Z ##[error]Packages failed to install
2016-08-16T12:16:14.5822348Z ##[debug]task result: Failed
2016-08-16T12:16:14.5822348Z ##[error]Return code: 1
Based on my test, changing Microsoft.NetCore.UniversalWindowsPlatform dependency version to 5.1.0, then it works fine. Based on this thread https://github.com/dotnet/coreclr/issues/3520, the 5.2.0 is prerelease and isn’t yet supported to be consumed by UWP apps.
I installed EiffelStudio like this:
1) Downloaded Eiffel_15.12_gpl_98497-macosx-x86-64.tar.bz2 from official page.
2)
cd /usr/local
tar xvfj /path/Eiffel_15.12.tar.bz2
3)
export ISE_EIFFEL=/usr/local/Eiffel_15.12
export ISE_PLATFORM=macosx-x86-64
export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin
Then I type "ec" to run the command-line compiler and this is the output:
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /usr/local/Eiffel_15.12/studio/spec/macosx-x86-64/bin/ec
Reason: Incompatible library version: ec requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Trace/BPT trap: 5
Any solution?
PS: Im using OSX 10.11.4
PPS: When i run
otool -L $(which ec)
I get
/usr/local/Eiffel_15.12/studio/spec/macosx-x86-64/bin/ec:
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
...
EDIT: I found this link that helps me
https://stackoverflow.com/a/19016967/6273708
But know the error message is
dyld: Library not loaded: /opt/local/lib/libgtk-x11-2.0.0.dylib
Referenced from: /usr/local/Eiffel_15.12/studio/spec/macosx-x86-64/bin/ec
Reason: image not found
Trace/BPT trap: 5
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)
OS: Mac 10.11.1
When I tried to "cmake", I got the following error message
dyld: Library not loaded: /opt/local/lib/libexpat.1.dylib
Referenced from: /opt/local/bin/cmake
Reason: Incompatible library version: cmake requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
Trace/BPT trap: 5
I also installed a fresh copy of CMake application, by running "/Applications/CMake.app/Contents/bin/ccmake", I got the following error message
dyld: Library not loaded: /opt/local/lib/liblzma.5.dylib
Referenced from: /opt/local/lib/libTIFF.dylib
Reason: Incompatible library version: libTIFF.dylib requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0
Trace/BPT trap: 5
Any help would be highly appreciated! Thanks!
It now works after I commented out the dyld line in bash_profile...