Is there not a gem for imagemagick?
I'm on Mac OS and if I do 'brew install imagemagick' it works, and I get passed my problem.
Error in browser network tab: [
"Unable to process image ... : You must have ImageMagick or GraphicsMagick installed"
]
I tried the rmagick gem but that doesn't seem to be doing the trick either. I want this in a gem file so other devs can get this working without having to brew install it. Anyone know what I'm missing here?
Related
I'm trying to install any Ruby version manager, and then install Rubocop. "brew doctor" says my system is fine, and I recently upgraded laptops from MacOS High Sierra to Big Sur. (I'm on a new computer!)
I seem to have RVM installed correctly, and I have even tried and failed to get rbenv working. RVM is recommended by my software course for it's ease of use, and I'm following their notes, but here is my CLI code:
$ rvm --default use ruby-3.0.2_1
Required ruby-3.0.2_1 is not installed.
To install do: 'rvm install "ruby-3.0.2_1"'
$ rvm install "ruby-3.0.2_1"
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.6/arm64/ruby-3.0.2_1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
mkdir: /usr/local/rvm/log/1637203871_ruby-3.0.2_1: Permission denied
tee: /usr/local/rvm/log/1637203871_ruby-3.0.2_1/update_system.log: No such file or directory
Updating system - please wait
Error running 'requirements_osx_brew_update_system ruby-3.0.2_1',
please read /usr/local/rvm/log/1637203871_ruby-3.0.2_1/update_system.log
Requirements installation failed with status: 1.
There's an old question and answer here that says the top part of my code isn't actually an error message, but I think the bottom part of it is saying I have some kind of issue.
Do I need to grant myself more permissions on this new laptop? Is the hint in the mkdir line above? Something else? How do I fix it? I would like to use an rvm to continue to use VS Code. I could switch to using AWS Cloud 9, but I prefer not to do that.
I am trying to use Middleman to create a website, and I am running into a lot of issues with trying to do it. To solve these issues I am currently running ruby through the git interface to resolve several errors that I get when trying to do this by other methods (like cmd). Right now I am having an issue getting the first step in doing a website with Middleman and getting errors when executing the first command in the first step of the tutorial.
I have found no resolution to my problem of WDM not working at all. Here is an image of what happens when I try to execute the command middleman init. After getting this Error I run bundle install and try again and get this Amazing Error that I have found no source in finding out how to fix. When I Do gem install WDM -v '0.1.1' --source 'https://rubygems.org/' it seems to work but then spits out the same error when I run middleman init again. I have no idea why this is happening when I can find no other sources on how to fix this.
Did you try running the suggested command at the bottom
gem install wdm -v '0.1.1' --source 'https://rubygems.org/'
?
Gosu fails to install on my Mountain Lion (10.8.3).
Here's the error I get:
Building native extensions. This could take a while...
ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:338:in `symlink': File exists - ../linux/gosu.bundle or ../lib/gosu.bundle (Errno::EEXIST)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:338:in `ln_s'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1418:in `fu_each_src_dest0'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:336:in `ln_s'
from extconf.rb:99
What I tried so far:
Checked that I've got Command line tools installed in My XCode. This guy had same problem. But we evidently have different source(s) of problem(s).
Tried installing dependencies from the rubygame website, appearently helped this guy. Installed the libraries like this guy.
Changed the path to put /usr/local/bin in front of /usr/bin/. That didn't help either.
Tried to install Rubygame gem : And same problem!
Tried to install SDL gem : Same problem!
So I decided to try to install something different: the Cake gem. It worked!
I decided to give up and ask the question in stackoverflow.
I typed my problem in stackoverflow.
So what could the problem be?
I had a similar issue. After tinkering in my Path forever, I downloaded and ran Jewelrybox. Afterwards, I had it reinstall ruby-1.9.3 -p448, during which it ran diagnostics. Thankfully was able to install gosu after that.
Try that out, hopefully it works for you too.
Ruby & Rails beginner here! Attempting to code out of my iPad 3rd gen using iSSH, Digital Ocean Server (using Ubuntu 12.10), DropBox, and Textastic editor. (There is always somebody trying to ice skate uphill!)
In my installation of Ruby I am following these directions: https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-from-source
When I do step 3: sudo gem update --system
ERROR: Loading command: update (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::UpdateCommand
I've seen some posts that talk about RVM. Do I need to uninstall everything and start over with RVM? If so do I just delete the directory or is there an uninstall command for Ruby? Do I need to uninstall the libraries? How?
Any and all help is greatly appreciated.
try installing zlib package if you are using RVM.
https://rvm.io/packages/zlib/
rvm pkg install zlib
and reinstall all your rubies
I've just done a fresh install of RubyMine 4.5 in order to get a quickstart on Rails dev.
Whenever I try and install any Gem using the Tools > Quick Install Gem... command, I get the following error (below is specific to the flickraw gem)
Failed to Install Gems
Following gems were not installed:
flickraw(0.9.6): While executing gem ...
(Errno::EACCESS)
Permission denied - /Users/Andy/.rvm/gems/ruby-1.9.3-p194/cache/flickraw-0.9.6.gem
I guess I get that it's a permissions error...but why is it happening, shouldn't this just work? And how do I fix it?
I'm running this on the latest version of OSX Mountain Lion.
I've had similar problems before, it turned out to be caused by sudo being the owner of some gems installed in that rvm ruby installation I was using. I guess I installed something with sudo by accident, I dunno-- but go check in /Users/Andy/.rvm/gems/ruby-1.9.3-p194/cache and /Users/Andy/.rvm/gems/ruby-1.9.3-p194/gems and see if sudo owns cache/flickraw-0.9.6.gem or any folders in gems and if needed change the owner and group back to you ... I actually had so many messed up I opted to just remove and rebuild that ruby.