After building the Ruby on Rails environment, running the bundle command in a new project encounters the following error:Workaround: Install DevkitTo rubyinstaller website download page Select the Devkit download for your system (here I downloaded the last one):When the download is complete, double-click devkit-mingw64-64-4.7.2-20130224-1432-sfx.exe:Set the extracted folder (for example, C:\DevKit), after decompression to see, the contents of the folder below:Enter the directory on the command l
Problem Description:
Under the Ubuntu system, the Ruby development environment is installed first through the command sudo apt-get install Ruby, and then with the command-line gem install Jekyll install the GitHub page's development tool Jekyll, encountered an error message: Failed to build gem native extension details are as follows:
Error: Error installing J
When native gem is installed on Mac OS X, dyld_stub_binding_helper and dyldfatalerror cannot be found.
Under Mac OS X10.10, sudo gem install curses returns the following error:
Apple @ kissAir: ruby_src $ sudo gem install curses
Password:
Fetching: curses-1.0.1.gem (100%)
B
The Ruby on Rails Web site says that running gem install rails after installing Ruby is good.
But the whole process took me a couple of hours. First of all, OpenSUSE 13.1 comes with Ruby 2.0.0p-247, and I offload Ruby because I intend to use rbenv to manage Ruby:
$ sudo zypper rm Ruby
As a result, Konsole is gone, YAST is gone, and it seems that the KDE desktop has been unloaded.
Then you will have to use the system itself. But the
Proficiency in the use of RubyGemsRubyGems is a Ruby plug-in management system that allows you to easily install and manage Ruby library functions. All open source kits can be found on the rubygems.
# # #常见指令
Gem-v View the version of RubyGems
Gem Update--system upgrade RubyGems version
Gem install gem_name Install a plugin
Cocould not find gem 'sqlite3 (> = 0) 'in any of the gem sources listed in you r Gemfile, sqlite3gemfileSolution: sudo gem install sqlite3-rubyERROR: cocould not find a valid gem 'rdiscount' (> = 0) in any repository
This problem happened to me for three nights. I have read the official English documents, wiki, and go
1. Background
When rails 3.0 was released, many of them worried about installing the gem, which was too slow to download the gem. This is not a slow network speed. Ruby's net: HTTP must pass through the wall and go through the sea to reach the rubyforge server. Even if the network environment is very good, the maximum speed is 50 K. What's more, there is no progress bar. Installing a
The specific process is as follows:
1. After the InstantRails-2.0 is installed, configure the ruby/bin directory in the environment variable path (if there are multiple Ruby in the system, the system recognizes the path when executing the command line)
2. Enter the doscommand line and execute gem update -- system. The result is:
Updating rubygems...Error: While executing gem... (
Because the host environment can not be linked to the network, sad, so only to find ways to download the package, upload to the host to installEnvironment: el6.x86_641. Gem installation [http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/]Ruby 1.9. Version 2 has the Ruby Gem installed by default, if your version is lower than this? Well, then look down.Installing GEMS requires ruby version at 1.8.7# Rpm-
Link: http://www.iteye.com/topic/797489
Curl official download http://curl.haxx.se/download.html
First download the tool from curl, remember to download the tool on the windows platform, select the version that supports SSH2 and SSL protocols, so that you can support the gem download methods for these two protocols, if errors are used during use, download all other attachments on the page.
Note: curl is a command line download tool that supports
When your use gem is the install package, the Result:ERROR:While executing gem ... (Encoding::undefinedconversionerror)U+7CFB to IBM437 in conversion from Utf-16le to UTF-8 to IBM437Workaround:Go to local path to modify the code, so the hint is due to inconsistent coding.To modify the encoding in the registry file:There will be no problem after the change.Error:while Executing
:
(in/usr/local/system/entos/netposa_redmine)
Rake Gems: Build # Build any native extensions for unpacked gems
Rake Gems: Build: Force # Force the build of all gems
Rake Gems: Install # installs all required gems.
Rake Gems: Refresh_specs # Regenerate gem specifications in correct format.
Rake Gems: Unpack # unpacks all required gems into vendor/gems.
Rake Gems: Unpack:d ependencies # un
Transferred from: http://www.jianshu.com/p/728184da1699Gem Introduction:Gem is a standard package for managing Ruby libraries and programs, and it is easy to find, install, upgrade, and uninstall packages through Ruby Gems such as http://rubygems.org/.Ruby 1.9. Version 2 has the Ruby Gem installed by default, and if you are using a different distribution, see "How to Install Ruby Gem".How to install the Rub
Ruby Gem command and rubygem command
I. Introduction
Gem is a standard package for managing Ruby libraries and programs. It is very convenient to find, install, upgrade, and uninstall software packages through Ruby Gem (such as http://rubygems.org/) sources. Ruby Gem is installed in Ruby 1.9.2 by default. If you are u
Gem Common commands
Gem-v # View version of RubyGems software
gem help #显示RubyGem使用帮助
Gems help Example #列出RubyGem命令一些使用范例
gem install [gemname] # ann Install the specified gem package, the program will first find the GEM
Install MySQL gem for half a day before installation.
A small record:
First of all, this article is useful.Article:
Http://geryit.com/blog/2011/01/installing-mysql-with-rails-on-mac-os-x-snow-leopard/
My own environment is
Mac OS X 10.6
$ Rvm -- versionRvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
$ Mysql -- versionMySQL ver 14.14 distrib 5.1.57, for apple-darwin10.3.0 (i386) using Readl
Why is there this?Due to domestic network reasons (you know), the intermittent connection to the resource file that rubygems.org stored on Amazon S3 failed. So you will encounter gem install rack or bundle install when the time is not responding, specifically can be used gem install rails -V to view the execution process.This is a full rubygems.org image, you can use this instead of the official version, th
Why is there this?Due to domestic network reasons (you know), the intermittent connection to the resource file that rubygems.org stored on Amazon S3 failed. So you will encounter gem install rack or bundle install when the time is not responding, specifically can be used gem install rails -V to view the execution process.This is a full rubygems.org image, you can use this instead of the official version, th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.