-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'gem install pdd' failed on MacOs Silicone Chip #227
Comments
As I can see, the only thing that can be improved is the installation documentation. |
@pnatashap if the solution explained by @php-coder works for you, maybe you can update the README file accordingly, in order to help other users? |
Yes, I fix this also using this way, will add a note to README about this. Problem on Windows is also in this library, will check if it possible to fix without WSL |
Looks like there is no easy way to use libmagic on windows, so it's better to update docs for now and create a docker file to simplify usage |
In case it's useful for someone, here is mine:
|
[cqfn#227] Add a space to display the link
[cqfn#227] Fix for Ruby version and os names
This was fixed by #230 and seems like we can close it. |
Fixed |
First of all some libraries requires higher permissions (run with sudo):
~ % gem install pdd Fetching pdd-0.23.2.gem Fetching slop-4.10.1.gem Fetching ruby-filemagic-0.7.3.gem Fetching rainbow-3.1.1.gem ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
But fails even if them:
`sudo gem install pdd
Password:
Fetching pdd-0.23.2.gem
Fetching ruby-filemagic-0.7.3.gem
Fetching rainbow-3.1.1.gem
Fetching slop-4.10.1.gem
Successfully installed slop-4.10.1
Building native extensions. This could take a while...
ERROR: Error installing pdd:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ruby-filemagic-0.7.3/ext/filemagic
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20240107-49962-hl5jhx.rb extconf.rb
checking for -lgnurx... no
checking for magic_open() in -lmagic... no
*** ERROR: missing required library to compile this module
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.`
The text was updated successfully, but these errors were encountered: