Skip to content

Instantly share code, notes, and snippets.

@glasser
Created November 4, 2014 23:45
Show Gist options
  • Save glasser/98cfb41154e9a5afb0ec to your computer and use it in GitHub Desktop.
Save glasser/98cfb41154e9a5afb0ec to your computer and use it in GitHub Desktop.
gem install error
ubuntu@ip-10-13-187-68:~$ sudo gem install mosql
ERROR: Could not find a valid gem 'mosql' (>= 0) in any repository
ERROR: Possible alternatives: mosql
ubuntu@ip-10-13-187-68:~$ sudo gem update
Updating installed gems
Nothing to update
ubuntu@ip-10-13-187-68:~$ sudo gem install mosql
ERROR: Could not find a valid gem 'mosql' (>= 0) in any repository
ERROR: Possible alternatives: mosql
ubuntu@ip-10-13-187-68:~$ gem help
RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.
Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]
Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install
Further help:
gem help commands list all 'gem' commands
gem help examples show some examples of usage
gem help platforms show information about platforms
gem help <COMMAND> show help on COMMAND
(e.g. 'gem help install')
gem server present a web page at
http://localhost:8808/
with info about installed gems
Further information:
http://rubygems.rubyforge.org
ubuntu@ip-10-13-187-68:~$ gem help commands
GEM commands are:
build Build a gem from a gemspec
cert Manage RubyGems certificates and signing settings
check Check installed gems
cleanup Clean up old versions of installed gems in the local
repository
contents Display the contents of the installed gems
dependency Show the dependencies of an installed gem
environment Display information about the RubyGems environment
fetch Download a gem and place it in the current directory
generate_index Generates the index files for a gem server directory
help Provide help on the 'gem' command
install Install a gem into the local repository
list Display gems whose name starts with STRING
lock Generate a lockdown list of gems
outdated Display all gems that need updates
owner Manage gem owners on RubyGems.org.
pristine Restores installed gems to pristine condition from files
located in the gem cache
push Push a gem up to RubyGems.org
query Query gem information in local or remote repositories
rdoc Generates RDoc for pre-installed gems
search Display all gems whose name contains STRING
server Documentation and gem repository HTTP server
sources Manage the sources and cache file RubyGems uses to search
for gems
specification Display gem specification (in yaml)
stale List gems along with access times
uninstall Uninstall gems from the local repository
unpack Unpack an installed gem to the current directory
update Update the named gems (or all installed gems) in the local
repository
which Find the location of a library file you can require
For help on a particular command, use 'gem help COMMAND'.
Commands may be abbreviated, so long as they are unambiguous.
e.g. 'gem i rake' is short for 'gem install rake'.
ubuntu@ip-10-13-187-68:~$ sudo gem install mosql
Fetching: sequel-4.16.0.gem (100%)
Fetching: pg-0.17.1.gem (100%)
Building native extensions. This could take a while...
Fetching: bson-1.11.1.gem (100%)
Fetching: mongo-1.11.1.gem (100%)
Fetching: bson_ext-1.11.1.gem (100%)
Building native extensions. This could take a while...
Fetching: rake-10.3.2.gem (100%)
Fetching: log4r-1.1.10.gem (100%)
Fetching: json-1.8.1.gem (100%)
Building native extensions. This could take a while...
Fetching: mongoriver-0.4.0.gem (100%)
Fetching: mosql-0.4.1.gem (100%)
Successfully installed sequel-4.16.0
Successfully installed pg-0.17.1
Successfully installed bson-1.11.1
Successfully installed mongo-1.11.1
Successfully installed bson_ext-1.11.1
Successfully installed rake-10.3.2
Successfully installed log4r-1.1.10
Successfully installed json-1.8.1
Successfully installed mongoriver-0.4.0
Successfully installed mosql-0.4.1
10 gems installed
Installing ri documentation for sequel-4.16.0...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment