Comments (6)
I solve the problem with next steps:
- see information about lib by type
brew info openssl
- 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
- 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
- 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.
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.
@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.
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.
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.
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)
- Using sleuth to calculate distribution of each individual offered cipher suite type HOT 2
- Incorrect TLS handshake types and TLS content types when generating TLS session metadata
- compilation error on macOS v 10.12.6
- The return value of 'sscanf()' should be checked
- Build failed with VS2019 on win10 HOT 4
- no VLAN support for data link type 12
- make error HOT 1
- Build Error while enable output compress HOT 1
- compile failed
- Number of packets is incorrect HOT 1
- A description of the parameters in joy's tool HOT 1
- Question with “one or more interfaces“
- 'type=1' option does not work
- How to use the FEATURE OPTIONS "payload=N (number)"?
- `sudo ./install_joy/install-sh -p /opt/app/joy` error
- Bytes in/out not correct
- is it prossible to use JOY to analysis malware network traffic online?
- Mac输出乱码
- some problem about sleuth
- some problem about sleuth
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joy.