rubygems

Trying to access my ruby project- LoadError pertaining to mysql

五迷三道 提交于 2019-12-23 20:12:35
问题 I'm trying to access my first ruby project. After navigating to the proper directory and typing: $ rails server I get the following error message: /Users/Rozey/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.6/lib/mysql2.rb:7:in require': dlopen(/Users/Rozey/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/Rozey/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle Reason: image

Ruby Error in cocoa pods After upgrading os and installing xcode

若如初见. 提交于 2019-12-23 20:07:01
问题 I got the following error when i run terminal command pod install command in terminal /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `<top (required)>' from <internal

Unicorn worker timeout on AWS boxes

随声附和 提交于 2019-12-23 19:08:42
问题 I'm trying to setup a Unicorn on an AWS box, but the workers just keep timing out and I don't know why. I'm using a Ubuntu Server 14.04 LTS AMI, installing everything needed for a standard Ruby on Rails installation. Using rails new, I generate an empty app and attempting to access it the first time seems to be fast, but after that the workers just timeout continuously and takes forever to serve the webpage. Loading a standard WEBrick server does not have this problem and loads pages almost

How to install mysql2 gem on Windows

Deadly 提交于 2019-12-23 18:27:28
问题 I'm using DevKit and XAMPP, and now I have to execute the following command: gem install mysql2 -v 0.2.6 --platform=ruby -- --with-mysql-dir="x:\Prog ram Files\mysql-5.5.11-winx64" --with-mysql-lib="x:\Program Files\mysql-5.5.11-winx64\lib" --with-my sql-include="x:\Program Files\mysql-5.5.11-winx64\include" --without-opt-dir However, XAMPP does not include a lib or include folder on its MySQL directory. What should I specify instead ? Thanks 回答1: Here's the solution I used to get Ruby with

How can I install Ruby gems on a Mac behind a corporate proxy?

寵の児 提交于 2019-12-23 18:14:52
问题 I am trying to install ruby gems on my MacOS OS X 10.5.1 behind a corporate firewall proxy. But I am getting an error about connection refused . How can I install Ruby gems on a Mac behind a corporate proxy? 回答1: Specify the proxy to use: export HTTP_PROXY='http://username:password@proxyserver.net:port/' If it's a Windows proxy (common in EnterpriseLand), it will use a custom NTLM authentication, which normal Unix apps don't do. To fix it, get NTLMAPS - a small Python app that acts as a local

“Invalid gemspec” messages during “bundle install” of factory girl (rails 3.1 and ruby 1.9.2p290)

孤者浪人 提交于 2019-12-23 17:18:51
问题 Note: I asked this question when I got unexpected messages when doing bundle install with the factory_girl gem using Ubuntu 11.10. Being a noob I had ... and still have ... no idea what was going on. The update below attempts to outline what I did to eventually get rid of the messages. I am leaving the question around with a slightly more pertinent title line in case it might be of use to someone else. I look at Factory Girl's README.md and I see: Install gem install factory_girl or add the

RVM ruby on rails issue OpenSSL

无人久伴 提交于 2019-12-23 17:18:45
问题 When I create a Rails app I am getting some errors and I have no idea what they mean or how to fix them. Instead of explaining I am going to output what is happening, I think this might be the best approach to getting help with this: j3@j3:~/code/rails_projects$ rails new first_app create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png create app/assets/javascripts/application.js create app/assets/stylesheets

Rails: Selenium::WebDriver::Error::WebDriverError: not executable: 'chromedriver-helper'

岁酱吖の 提交于 2019-12-23 16:34:24
问题 I've setup Rails environment two days ago and I thought things were going fine but then when I ran rake test command it got aborted due to this load error: Bundler::GemRequireError: There was an error while trying to load the gem 'chromedriver-helper'` `Caused by: Selenium::WebDriver::Error::WebDriverError: not executable: "C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/chromedriver-helper-2.1.0/bin/chromedriver-helper" I tried a few things but nothing worked. I reinstalled the gem and updated it.

ruby gems under rvm on Ubuntu (failing to) install in the wrong location

▼魔方 西西 提交于 2019-12-23 15:56:28
问题 I'm running Ubuntu 10.04 and originally installed ruby 1.9.1 (from source). I've just decided to try out ruby 1.9.2 and rails 3, and it seemed like a good time to use rvm to deal with the multiple ruby installs and gemsets. rvm installed and seems to be working, I installed ruby 1.9.2 in rvm and made that my default ruby. However, every time I try to install a gem under ruby 1.9.2 I see this error. mark@Steve-Austins-Penguin:~$ gem install haml ERROR: While executing gem ... (Errno::EACCES)

Why isn't the composite_primary_keys gem for Rails working?

删除回忆录丶 提交于 2019-12-23 15:50:38
问题 I've followed the instructions here, installing the composite_primary_keys gem via sudo gem install composite_primary_keys That worked fine. Now when I add the following to my model set_primary_keys :user_id, :group_id and I get undefined method `set_primary_keys' for #<Class:0x1043bfe20> Also, using multiple primary keys in a migration as described here has no effect. Any ideas why this might not be working and how to make it work? Note: I do not want a speech on why I should not be using