phashion | Ruby wrapper around pHash , the perceptual hash library | Computer Vision library
kandi X-RAY | phashion Summary
kandi X-RAY | phashion Summary
Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks if the value is duplicate
- Returns the difference between two fingerprint
- Returns the distance between two hashes
- Returns the fingerprint for the image
- Returns the fingerprint for the fingerprint
phashion Key Features
phashion Examples and Code Snippets
Community Discussions
Trending Discussions on phashion
QUESTION
When I doing bundle install of my project with Pashion
in my gemfile.
I encountered troubleshooting:
ld: library not found for -ljpeg
.
Confirmed things are I have installed jpeg, libjpeg, libpng
by following commands.
brew install jpeg
and brew install libjpeg
brew install libpng
gem install phashion -v '1.2.0'
will get the same error.
ANSWER
Answered 2021-Mar-05 at 14:24After lots of searching and tries, the solution is as follows:
gem install phashion -v '1.2.0'
You will get troubleshooting:ld: library not found for -ljpeg
install phashion with config
LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/libjpeg/lib gem install phashion -v '1.2.0'
Then you will get troubleshooting:fatal error: 'jpeglib.h' file not found
last troubleshooting is because of clang path error. So
Addexport CPLUS_INCLUDE_PATH=/opt/homebrew/include
into~/.zshrc
Don't forget tosource ~/.zshrc
.run
LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/libjpeg/lib gem install phashion -v '1.2.0'
once again.
Then You will get troubleshooting:ld: library not found for -lpng
run
LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/libjpeg/lib:/opt/homebrew/opt/libpng/lib gem install phashion -v '1.2.0'
once again.
Installation success!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phashion
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page