error: cannot find OpenSSL or Libgcrypt when creating the VM on OSX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error: cannot find OpenSSL or Libgcrypt when creating the VM on OSX

abergel
Here is the trace of the build.sh
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for libssl... no
checking for libgcrypt... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
make[2]: *** [thirdParty/libssh2/src/libssh2-stamp/libssh2-configure] Error 1
make[1]: *** [thirdParty/libssh2/CMakeFiles/libssh2.dir/all] Error 2
make: *** [all] Error 2
~/Desktop/VM_TMP/pharo-vm/build> brew install OpenSSL
Warning: openssl-1.0.2a-1 already installed
~/Desktop/VM_TMP/pharo-vm/build> brew install Libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2
Already downloaded: /Library/Caches/Homebrew/libgcrypt-1.6.3.tar.bz2
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.6.
==> make
==> make check

Please report to http://bugs.gnupg.org
======================================
make[2]: *** [check-TESTS] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1

READ THIS: https://git.io/brew-troubleshooting

~/Desktop/VM_TMP/pharo-vm/build>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





~/Desktop/VM_TMP/pharo-vm/build> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
~/Desktop/VM_TMP/pharo-vm/build>



No idea what’s going on…
Help :-)

Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: error: cannot find OpenSSL or Libgcrypt when creating the VM on OSX

EstebanLM
you have a dependency conflict.
but most probably you do not need those plugins. Why do you want to build VM by your own?

In any case, you can just remove those dependencies for you build… after if you need it you can check what conflicts:

buildMacOSX32
        "Build with freetype, cairo, osprocess"
        PharoSpur32OSXConfig new  
                generationType: generationType;
                addExternalPlugins: #( FT2Plugin );
                addInternalPlugins: #( UnixOSProcessPlugin );
                addThirdpartyLibraries: #(
                        'cairo'
                        ‘libgit2’
                        'libssh2'
                        'libsdl2');
                generateSources;
                generate.

you can remove all the third party libraries section.

Esteban

> On 28 Feb 2016, at 22:32, Alexandre Bergel <[hidden email]> wrote:
>
> Here is the trace of the build.sh
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
> checking for shared library run path origin... done
> checking for libssl... no
> checking for libgcrypt... no
> configure: error: cannot find OpenSSL or Libgcrypt,
> try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
> make[2]: *** [thirdParty/libssh2/src/libssh2-stamp/libssh2-configure] Error 1
> make[1]: *** [thirdParty/libssh2/CMakeFiles/libssh2.dir/all] Error 2
> make: *** [all] Error 2
> ~/Desktop/VM_TMP/pharo-vm/build> brew install OpenSSL
> Warning: openssl-1.0.2a-1 already installed
> ~/Desktop/VM_TMP/pharo-vm/build> brew install Libgcrypt
> ==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2
> Already downloaded: /Library/Caches/Homebrew/libgcrypt-1.6.3.tar.bz2
> ==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.6.
> ==> make
> ==> make check
>
> Please report to http://bugs.gnupg.org
> ======================================
> make[2]: *** [check-TESTS] Error 1
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
>
> READ THIS: https://git.io/brew-troubleshooting
>
> ~/Desktop/VM_TMP/pharo-vm/build>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>
>
> ~/Desktop/VM_TMP/pharo-vm/build> gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
> Apple LLVM version 7.0.2 (clang-700.1.81)
> Target: x86_64-apple-darwin15.2.0
> Thread model: posix
> ~/Desktop/VM_TMP/pharo-vm/build>
>
>
>
> No idea what’s going on…
> Help :-)
>
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: error: cannot find OpenSSL or Libgcrypt when creating the VM on OSX

Mariano Martinez Peck
Hi Alex,

I was having the same issue since a long time. And I always have to workaround as Esteban suggested (explicitly removing the libssh2 third party). But that was painful as I wanted a running out of the box situation. I tried a couple of things and none worked until I run the following from command line:

 xcode-select --install 

That allowed me to install/update command line tools from Xcode and that made it work.

Cheers, 

On Tue, Mar 1, 2016 at 9:50 AM, Esteban Lorenzano <[hidden email]> wrote:
you have a dependency conflict.
but most probably you do not need those plugins. Why do you want to build VM by your own?

In any case, you can just remove those dependencies for you build… after if you need it you can check what conflicts:

buildMacOSX32
        "Build with freetype, cairo, osprocess"
        PharoSpur32OSXConfig new
                generationType: generationType;
                addExternalPlugins: #( FT2Plugin );
                addInternalPlugins: #( UnixOSProcessPlugin );
                addThirdpartyLibraries: #(
                        'cairo'
                        ‘libgit2’
                        'libssh2'
                        'libsdl2');
                generateSources;
                generate.

you can remove all the third party libraries section.

Esteban

> On 28 Feb 2016, at 22:32, Alexandre Bergel <[hidden email]> wrote:
>
> Here is the trace of the build.sh
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
> checking for shared library run path origin... done
> checking for libssl... no
> checking for libgcrypt... no
> configure: error: cannot find OpenSSL or Libgcrypt,
> try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
> make[2]: *** [thirdParty/libssh2/src/libssh2-stamp/libssh2-configure] Error 1
> make[1]: *** [thirdParty/libssh2/CMakeFiles/libssh2.dir/all] Error 2
> make: *** [all] Error 2
> ~/Desktop/VM_TMP/pharo-vm/build> brew install OpenSSL
> Warning: openssl-1.0.2a-1 already installed
> ~/Desktop/VM_TMP/pharo-vm/build> brew install Libgcrypt
> ==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2
> Already downloaded: /Library/Caches/Homebrew/libgcrypt-1.6.3.tar.bz2
> ==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgcrypt/1.6.
> ==> make
> ==> make check
>
> Please report to http://bugs.gnupg.org
> ======================================
> make[2]: *** [check-TESTS] Error 1
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
>
> READ THIS: https://git.io/brew-troubleshooting
>
> ~/Desktop/VM_TMP/pharo-vm/build>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>
>
> ~/Desktop/VM_TMP/pharo-vm/build> gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
> Apple LLVM version 7.0.2 (clang-700.1.81)
> Target: x86_64-apple-darwin15.2.0
> Thread model: posix
> ~/Desktop/VM_TMP/pharo-vm/build>
>
>
>
> No idea what’s going on…
> Help :-)
>
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>





--