From: Josh Cheek Date: 2013-04-22T18:48:24+09:00 Subject: Re: help with installing thrift with ruby 1.9.3 --001a11c33e4e15bc3304daeff8ef Content-Type: text/plain; charset=ISO-8859-1 IIRC, Debian has different packaging philosophies, and disables Rubygems so that you will use their package manager to install specific versions of gems that they've vetted (the Ruby community moves very fast, but the Debian team is concerned with stability). I believe to get around this, most people build their own Ruby or use a version manager https://www.ruby-toolbox.com/categories/ruby_version_management -Josh On Mon, Apr 22, 2013 at 3:37 AM, Ken Peng wrote: > Hello, > > I have the system environment as: > > # ruby -v > ruby 1.9.3p392 (2013-02-22) [x86_64-linux] > > # gem -v > 2.0.3 > > # cat /etc/issue > Ubuntu 10.04.4 LTS \n \l > > > I can't get success to install Thrift (thrift-0.9.0) on the host, when > "make install" I always got: > > ... > Finished in 3.31 seconds > 364 examples, 0 failures, 1 pending > gem build thrift.gemspec > WARNING: prerelease dependency on mongrel (= 1.2.0.pre2, development) > is not recommended > Successfully built RubyGem > Name: thrift > Version: 0.9.0.1 > File: thrift-0.9.0.1.gem > gem install thrift-*.gem > ERROR: Could not find a valid gem 'thrift-*.gem' (>= 0) in any > repository > rake aborted! > Command failed with status (2): [gem install thrift-*.gem...] > > Tasks: TOP => install > (See full trace by running task with --trace) > make[4]: *** [install-exec-hook] Error 1 > make[4]: Leaving directory `/root/thrift-0.9.0/lib/rb' > make[3]: *** [install-exec-am] Error 2 > make[3]: Leaving directory `/root/thrift-0.9.0/lib/rb' > make[2]: *** [install-am] Error 2 > make[2]: Leaving directory `/root/thrift-0.9.0/lib/rb' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/root/thrift-0.9.0/lib' > make: *** [install-recursive] Error 1 > root@default:~/thrift-0.9.0# gem install thrift -v 0.9.0.1 > ERROR: Could not find a valid gem 'thrift' (= 0.9.0.1) in any > repository > ERROR: Possible alternatives: thrift > root@default:~/thrift-0.9.0# ruby -v > ruby 1.9.3p392 (2013-02-22) [x86_64-linux] > > > Please help, thanks! > > -- > Posted via http://www.ruby-forum.com/. > > --001a11c33e4e15bc3304daeff8ef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
IIRC, Debian has different packaging philosophies, and dis= ables Rubygems so that you will use their package manager to install specif= ic versions of gems that they've vetted (the Ruby community moves very = fast, but the Debian team is concerned with stability).

I believe to get around this, most people build their = own Ruby or use a version manager=A0https://www.ruby-toolbox.com/categorie= s/ruby_version_management

-Josh



On Mon, Apr 22, 20= 13 at 3:37 AM, Ken Peng <lists@ruby-forum.com> wrote:
Hello,

I have the system environment as:

# ruby -v
ruby 1.9.3p392 (2013-02-22) [x86_64-linux]

# gem -v
2.0.3

# cat /etc/issue
Ubuntu 10.04.4 LTS \n \l


I can't get success to install Thrift (thrift-0.9.0) on the host, when<= br> "make install" I always got:

...
Finished in 3.31 seconds
364 examples, 0 failures, 1 pending
gem build thrift.gemspec
WARNING: =A0prerelease dependency on mongrel (=3D 1.2.0.pre2, development)<= br> is not recommended
=A0 Successfully built RubyGem
=A0 Name: thrift
=A0 Version: 0.9.0.1
=A0 File: thrift-0.9.0.1.gem
gem install thrift-*.gem
ERROR: =A0Could not find a valid gem 'thrift-*.gem' (>=3D 0) in = any
repository
rake aborted!
Command failed with status (2): [gem install thrift-*.gem...]

Tasks: TOP =3D> install
(See full trace by running task with --trace)
make[4]: *** [install-exec-hook] Error 1
make[4]: Leaving directory `/root/thrift-0.9.0/lib/rb'
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/root/thrift-0.9.0/lib/rb'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/root/thrift-0.9.0/lib/rb'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/thrift-0.9.0/lib'
make: *** [install-recursive] Error 1
root@default:~/thrift-0.9.0# gem install thrift -v 0.9.0.1
ERROR: =A0Could not find a valid gem 'thrift' (=3D 0.9.0.1) in any<= br> repository
ERROR: =A0Possible alternatives: thrift
root@default:~/thrift-0.9.0# ruby -v
ruby 1.9.3p392 (2013-02-22) [x86_64-linux]


Please help, thanks!

--
Posted via http://= www.ruby-forum.com/.


--001a11c33e4e15bc3304daeff8ef--