GithubHelp home page GithubHelp logo

Problem with build joy on mac os about joy HOT 6 CLOSED

cisco avatar cisco commented on July 30, 2024
Problem with build joy on mac os

from joy.

Comments (6)

forgit12 avatar forgit12 commented on July 30, 2024 2

I solve the problem with next steps:

  1. see information about lib by type brew info openssl
  2. copy information from description
For compilers to find this software you may need to set:
    LDFLAGS:  -L/Users/user1/.brew/opt/openssl/lib
    CPPFLAGS: -I/Users/user1/.brew/opt/openssl/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /Users/user1/.brew/opt/openssl/lib/pkgconfig
  1. then manually edit file config.vars in joy directory and put right way to lib and headers like this
export LIBPATH= -L "/Users/user1/.brew/opt/openssl/lib"
export SSLPATH= -I "/Users/user1/.brew/opt/openssl/include"
export CURLPATH= -I "/opt/vagrant/embedded/include"
export COMPDEF= -DUSE_GZIP
export COMPRESSED= -DCOMPRESSED_OUTPUT=1
  1. Now project compiled and work
    P.S. Flags during running ./config with flags like ./config -s {PATH} or ./config -l {PATH} doesn’t help

from joy.

bhudson33 avatar bhudson33 commented on July 30, 2024

I am running 10.13.6 and do not have any issues. It seems like from the error that an "old" directory is laying around from a prior build of the shared library objects. Try 'make clean' and then run 'make' again to see what you get.

from joy.

forgit12 avatar forgit12 commented on July 30, 2024

@bhudson33 Thank you I try it once more and find one more issue
when I do make
see the mistake
ld: library not found for -lcrypto

openssl is already installed
I add also linked using ln -s
I searched that on mac I can fix it by using -L {path_to_my_ssl_lib_dir}

But to add this flag need to edit MAKEFLAGS variable in Makefile
Or maybe you know another way to fix it.

Thank you

from joy.

bhudson33 avatar bhudson33 commented on July 30, 2024

when you issue the ./config command, you can specify the path to the library on the command line. That will include your "custom" path in the make variables. Like this:

./config -l {path_to_your_ssl_lib_dir}

Then when you issue make, it should find everything.

Also, curious, when you issue the command
./config

does it find everything? It should tell you if it does or not like so:
bhudson-mac:9>./config
Checking for required dependencies
Checking for libpcap...exists
Checking for libcrypto...exists
Checking for libcurl...exists
Checking for libpthread...exists
Checking for libz...exists
Searching for OpenSSL headers...found
Searching for Curl headers...found
The following variables were defined:
export LIBPATH= -L "/usr/lib" -L "/usr/local/lib"
export SSLPATH= -I "/usr/local/ssl/include"
export CURLPATH= -I "/usr/local/include"
export COMPDEF= -DUSE_GZIP
export COMPRESSED= -DCOMPRESSED_OUTPUT=1
All dependencies found. Issue 'make clean;make' to build the code

from joy.

forgit12 avatar forgit12 commented on July 30, 2024

Below is sample of my output
Checking for required dependencies
Checking for libpcap...exists
Checking for libcrypto...exists
Checking for libcurl...exists
Checking for libpthread...exists
Checking for libz...exists
Searching for OpenSSL headers...found
Searching for Curl headers...found
The following variables were defined:
export LIBPATH= -L "/usr/lib"
export SSLPATH= -I "/Users/sasha/.brew/Cellar/openssl/1.0.2o_2/include/"
export CURLPATH= -I "/opt/vagrant/embedded/include"
export COMPDEF= -DUSE_GZIP
export COMPRESSED= -DCOMPRESSED_OUTPUT=1
All dependencies found. Issue 'make clean;make' to build the code

I try different flags and dir location, but also I see this mistake after make
ld: library not found for -lcrypto

from joy.

bhudson33 avatar bhudson33 commented on July 30, 2024

I am guessing based on the output it is finding crypto library in /usr/lib but the header files it is including are from the brew install. Add the path to the crypto library for the brew install to your config command and see how that goes.

from joy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.