How to fix this ruby gem installation error? - ruby-on-rails

on a Windows 7 environment,
i installed ruby 2.2 and and the ruby development kit and want to install a gem now, which throws this error:
error: unknown type name 'BOOL'
for the command
gem install av_capture -v '1.0.1'
on multiple .h files. The av_capture gem is part of a 'bundle install' i want to do for another gem.
I also get one
fatal error: AVFoundation/AVFoundation.h: No such file or directory
So i doubt that av_capture gem can be installed at all (?)
Google tells me to use g++ instead of gcc to fix the bool type error, i dont think that i can adjust this for the ruby devkit though.
The DevKit itself seems to work fine, the example json part of the devkit wiki installation site works.

Just looked up this gem, as it says everywhere on their site:
Wraps up AVCapture and exposes it to Ruby. This gem only works on OS X.
So I doubt you're going to get this to work. AVFoundation is an IOS Specific thing.

Related

svn_wc gem can not be imported

I have a Ruby on Rails app, our development environment is set on macOS. I need a connection to the svn server that I use for storing files and so on.
The core problem I am facing is, despite I succeed all of the steps from the docs I can not import svn_wc gem in my controller.rb
Terminal output when I run rails serve is similar to this one
LoadError (cannot load such file -- svn/core)
I have this line in my Gemfile
gem 'svn_wc'
And had installed MacPorts for downloading Ruby bindings with the following command
sudo port install subversion-rubybindings
The gem seems buggy and does not declare dependencies correctly. It requires svn/core, which is not present in the gem source code.
The gemspec does not declare any dependency either.
However, if you read the README, you'll see that you need SVN SWIG ruby binding (whatever that is) but also ruby 1.8.
Your best bet would be to find another gem, or even use something like git-svn and interact with it like git

sqlite3.rb:6:in require: libruby.so.2.2: cannot open shared object file

sorry for my english.
I was learning about ruby on rails and i tried to update to rails 5.
I uninstall olders version of ruby and now i have problems.
i have reading http://railsapps.github.io/updating-rails.html
i made a mistake because i uninstalled something that i dint do.
now i have ruby-2.3.1
i have this error now.
.gem/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `require':
libruby.so.2.2: cannot open shared object file: No such file or
directory -
/home/yvasquez/.gem/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.so
(LoadError)
Thanks for reply
I had the same error with ruby 2.3 & 2.3.1. It is because it fails to recognize the devkit (which i hope you need not install unless you're using Windows) gems as native ruby gems. The problem is with the latest ruby version and the gem configs located in the directory, where you will have to manually specify the native part to each gem.
Anyway, I went back to ruby 2.2.5, and everything works perfectly for me.
Try ruby 2.2.5 OR since you are on linux, try re installing and make sure you add everything to the path so your gems are recognized. Also, try installing sqlite3 separately and add to path.

Not able to view site in browser with railsinstaller due to missing Gem

I am super, super new at programming and I have been trying to get everything set-up on my computer. I have installed RailsInstaller, go to >railsinstaller_demo, and type in rails s. I get the following error though could not find gem 'uglifier <>= 1.0.3> x86-mingw32'
I looked through the forum and found how to do a gem list and i noticed it was not there. I then went to gembundler and ran $ gem install bundler. I tried again but it did not work.
I am sure the answer is on this site, but i am so new that i see all these lines of code I actually have no idea where to type it in.. I am running Windows 7.
thanks for taking the time to help out a real beginner.
Have you gone to the $ railsinstaller_demo directory and run the bundle install command? This will install the gem dependencies for the application; you will not be able to run the server until you've bundled the gems. Additionally, if you're still having issues with the uglifier gem, go ahead and remove the line in the Gemfile and then run bundle install
If you need further help with the Command Prompt, you an find out more at http://bit.ly/ZajVeW.
Thanks,
Evan

Ruby on Rails TypeError

I have been working on a ruby on rails application and ran into the following error when doing just about anything, including installing a gem, updating the bundle, installing the bundle.
ERROR: While executing gem ... (TypeError)
incompatible marshal file format (can't be read)
format version 4.8 required; 31.139 given
I have uninstalled RVM and completely removed all files from it, then tried to install a gem, but still get the same error.
I had this exact problem, and it took me forever to figure it out. To fix it, I ran the following command:
bundle install --full-index
My guess is that I ended up with a corrupted rubygems index after my computer locked up, and this command forces a fresh download of the index.
Hopefully this helps someone who runs into this.
Change the source in your gemfile to:
source 'https://rubygems.org'
https://github.com/grosser/parallel_tests/pull/183

Ruby on Rails -Sqlite3 procedure could not be located in the dynamic link library sqlite3 dll

I am new to Ruby on rails and have just previously asked a question about the script/server not being created. And found out that it's because of the sqlite not found. So I installed the gem and that's not working either, it was saying that the .dll wasn't found. So I used this quite tutorial to get the .dll and placed it in my /ruby/bin.
That fixed the .dll missing issue but has caused another problem. When I try to start the server (rails server), it says:
The procedure entry point
sqlite_column_database_name could not
be located in the dynamic link library
sqlite3.dll
Please help, I am a noob at this Ruby on Rails stuff :/
Run "gem list sqlite". Post the output.
I suspect you installed sqlite-ruby instead of sqlite3 gem. The old gem is trying to call an old function in the dll that doesn't exist anymore.
If you don't see "sqlite3" in your gem list, run "gem install sqlite3".

Resources