I'm on debian. I have ruby set up with bundle. I do
sudo gem install watir-webdriver
sudo gem install phantomjs
Then I add both to my Gemfile. Then I do bundle install. Then I run ruby code
Watir::Browser.new(:phantomjs)
and get this error:
/var/lib/gems/2.1.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/phantomjs/service.rb:38:in `executable_path': Unable to find phantomjs executable. (Selenium::WebDriver::Error::WebDriverError)
How do I make this work? Thanks!
you don't have phantomjs installed correctly (or at all), so when your program tries to open phantomjs, it cant find it.
try this
http://www.netdip.com/install-phantomjs-1422766836/
You may install phantomjs as a gem.
Related
So i've been using the mechanize gem fine on my OSX machine but now when i'm trying to use it on my Win10 machine i've run into some issues. Basically it can't find the mechanize gem for some reason. C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- mechanize (LoadError)
Are you able to use other gems on your win10 machine without error?
It looks like the error is with nokogiri not with mechanize. Which version of Nokogiri do you have installed?
I would try updating your gems with gem update --system
Try to install it:
gem install nokogiri
you should run the desktop app "start command prompt with ruby" or do win+r (for run on windows) and type:
C:\Windows\System32\cmd.exe /E:ON /K C:\Ruby22-x64\bin\setrbvars.bat
once you are in there, run your command: gem install nokogiri
apt-get install ruby2.2-dev should work :-)
I have successfully installed Ruby Gems on my Mac many times. I need to configure a Windows 7 Enterprise virtual machine with Compass, Sass and Suzy.
I downloaded an installed Ruby on the Windows machine with the installer, 1.9.3. I ran gem update --system which updated Rubygems to 1.8.4.
I was able to install Sass 3.2 by running gem install sass
However, if I run gem install compass or gem install susy I get an error:
Error while excecuting gem .. (ArgumentError) marshall data too short
Any ideas? At this point, I can't install those gems.
The alternative solution..: Download gem compass from here to your ruby root folder. Then try again
gem install compass
It should install this time..Good luck
Had same issue, updating rubygems system solved it. Just use the following command
gem update --system
For those finding this question, many great tips here. Using them, I found this solution to work:
At the N: prompt in "start command line with ruby environment", I used the command rmdir /S .gem which deleted all gems. I then installed them again with gem install as directed on their respective host web pages. Hope this helps someone.
Hi I am looking to install the win32-service gem in Ruby for Windows, I have tried using the "gem install" command but it doesn't seem to know where to find my gem ;(
I downloaded the gem itself which came with a load of folders but no install instructions.
Is there anyway I can manually install the gem or point IRB in the right direction?
run this command to install gem file manually.
gem install [your gem file]
I have installed rubymine and Ruby193 (with rubyinstaller).
I now create a rails aplication with "preconfigured for selected database" - "mySqL " checkbox selected
When I click the execute it prints the following error :
D:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)
ideas?
Install this gem separately:
gem install jquery-rails
or via Bundler
bundle install (in the project directory where your Gemfile is located)
Here is the latest version of jquery-rail to install in ubuntu via terminal:
gem install jquery-rails -v 4.0.4
On Windows (at least from what I was just doing) rubymine fails to install gems with bundle install that are very easily installed from the command prompt using the gem install command as shown above.
This will install the gem which will allow you to rerun the rubymine bundler to create your bundle.
*I wanted to put this on the answer above me as a comment but I can't add it for some reason.
There must be some option to let the bundle command in rubymine to download new gems. Is it --system?
I've had this problem recently and found a simple way to bypass it.
CD into the project folder and check the gemfile to make sure the gems are present.
Run bundle install in the project folder. This should install the missing gems into the project folder. Everything worked fine for me after that.
https://github.com/Shopify/shopify_api
I've never manually installed something like this before, I have only used gem install xxxx in the past.
I am using RVM.
Update
OK, gem install does work, but how would I install it manually?
It's a gem so you could download it and decompress it, cd into its directory, then run rake. But why? gem install will be less work and will do as well.
gem install path/to/gem/file.gem
It's a gem, it's available from Rubygems, so
gem install shopify_api
See https://rubygems.org/gems/shopify_api