Rubyrailsdevkitsqlite3 environment dependencies installed with railsinstaller have been installed now want to try mysqlC: windowssystem32 gt; railsnewE: rubykk10-dmysqlInstallingmysql2 (0.3.13) Gem: Installer: ExtensionBuildError: ERROR: warning. f: railsRailsInstalle... mysqlgemrailsrailsinstallerruby
Ruby rails devkit sqlite3 on which the environment installed with railsinstaller depends has been installedNow I want to try mysqlC: \ windows \
The problem that Mysql cannot be installed using Gem in Mac OS is that when Mysql is installed using Gem in Mac OS, the following error occurs: www.2cto.com Java code Building native extensions. this cocould take a while... ERROR: Error installing mysql: ERROR: Failed to build gem
Ruby-v # view the ruby VERSION ruby-e '''require "watir"; puts Watir: IE: version'' # view the watir VERSION
Rvm list known # list known ruby versions
Rvm install 1.9.3
Rvm use 1.9.3 | rvm use system
Rvm use 1.9.3 -- default
Rvm list # list local ruby versions
Rvm remove 1.9.2
For details, see RVM practical guide https://ruby-china.org/wiki/rvm-guide.
Gem-v # gem version
GEM-related commands use
1. Show help and version of Gem
Copy Code code as follows:
Gem–h/--help
#显示gem的帮助
Gem–v/--version#显示gem的版本号
2. List all available software for the remote library
Copy Co
Ruby on rails gem install pg cannot be installed, rubyrails
gem install pg -v '0.18.2'Building native extensions. This could take a while...ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Users/bevan/.rvm/gems/ruby-2.3.0/g
Use Fastlane for fast, continuous updates and a range of issues during installation:1. Installing the Fastlane:sudo gem install FastlaneErrorERROR: Failed to build gem native extension.--remove http://rubygems.org/-a https://ruby.taobao.org/# View current gem source gem sour
want to view the help of the install command separately, you can use the NPM helper install--------------------------------------------------------------------------------------------------------Gem-v #gem版本Gem Update #更新所有包Gem Update--system #更新RubyGems软件Gem install Rake #
Ruby-v #查看ruby version ruby-e ' require ' watir; Puts Watir::ie::version ' #查看watir版本
RVM list Known #列出已知的ruby版本
RVM Install 1.9.3
RVM Use 1.9.3 | RVM Use System
RVM Use 1.9.3--default
RVM List #列出本地ruby版本
RVM Remove 1.9.2
See RVM Practical Guide for specific details https://ruby-china.org/wiki/rvm-guide
Gem-v #gem版本
Gem Source #
Tutorial on creating a custom Ruby gem package, rubygem
Write a simple example
1. Create the following folder
Note: The lib directory must have a rb file with the same name as your gem.
Copy codeThe Code is as follows:$ Cd hola$ Tree.├ ── Hola. gemspec── Lib└ ── Hola. rb
2. write code
. Hola. rb
% cat lib/hola.rb class Hola def self.hi puts "Hello world!" end end
. Hola. gemspec
% cat ho
#gem install json-v ' 1.8.3 'Building native extensions. This could take a while... Error:error installing json:ERROR:Failed to build gem native extension. /usr/bin/ruby1.9.1extconf.rb/USR/LIB/RUBY/1.9.1/RUBYGEMS/CUSTOM_REQUIRE.RB:36:inch' Require': Cannot load such file--MKMF (Loaderror) from/USR/LIB/RUBY/1
there. Else T, as it turns out, thereIsSomething out there: it's called the graphics execution manager, or gem. the intel-sored gem project is all of one month old, as of this writing. the gem developers had not really intended to announce their work quite yet, but the TTM discussion brought the issue to the fore.
Keith Packard's introduction to gemshortdes a do
Magic Gem House system development, Magic Gem House source code development, Magic Gem House Consulting: 185,2946,0381 Mr. Chen (micro-electric), Magic Gem House mode development, Magic Gem House app development, Magic Gem House P
Tags: mysql gem ruby xampp windowsYou may need to generate LIBMYSQLCLIENT.A from Libmysql.dll before: sourceCD C:\xampp-1.8.3\mysql\libC:\DevKit-tdm-32-4.5.2-20111229-1559-sfx\devkitvars.batPexports.exe Libmysql.dll > Libmysql.defSource: C:\strawberry\c\bin\pexports. EXE Fortunately installed Perl, or do not know where to find this pexports tool under theDlltool--input-def libmysql.def--dllname libmysql.dll--output-lib libmysqlclient.a-kC:\redmine-2.6
Common Ruby Package Manager gem commands and common rubygem commands
Gem-related commands
1. display the help and version of gemCopy codeThe Code is as follows:Gem-h/-- help# Display the help of gem
Gem-v/-- version# Display the gem version number2. List all available softwa
Upgrade to the latest Mac OS Mavericks. There was an error loading JSON:
Copy Code code as follows:
Gem install json-v ' 1.8.1 '
Building native extensions. This is could take a while ...Error:error Installing JSON:Error:failed to build gem native extension.
/usr/local/var/rbenv/versions/2.0.0-p247/bin
Create your own gem and upload it to githubCreate your own gem and upload it to the github environment: centos7, git version 1.8.3.11. Create gem1 to install bundler# Gem install bundler2. Use bundler to create the framework required for gem# Bundler gem file_manipulate3. Mo
Write one of the simplest examples
1. Build the following folder
Note: The Lib directory must have a RB file that is the same as your gem name.
Copy Code code as follows:
$ CD Hola
$ tree
.
├──hola.gemspec
└──lib
└──hola.rb
2. Write Code
. Hola.rb
% Cat lib/hola.rb
class Hola
def self.hi
puts "Hello world!"
End End
. hola.gemspec
% cat Hola.gemspec
In my previous blog post, I documented how Ruby operates the environment configuration of the MongoDB database in a Windows environment. The last step describes the driver package for installing MongoDB. Using the Gem Online installation method. The purpose of this article is to use GEMS for offline installation of GEM kits when the target machine or environment cannot connect to the Internet.1. in the http
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.