[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Need help to install "linguistics" gem

Hunt Jon

10/17/2008 3:00:00 AM

Hi,

I have a problem with installing gem: linguistics.

sudo gem install linguistics

Gave me "not found" error. So I googled and found the source here.
http://www.deveiate.org/projects/Li...
The gem seems to be located at
http://www.deveiate.org/code/Linguistics...

I don't know how I can install this gem.

Can any body help on this?

-J

4 Answers

Victor H. Goff III

10/17/2008 3:13:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

Simply download it to your local drive... then do something like this:bash-3.2$
cd /cygdrive/d/Downloads/
bash-3.2$ gem install Linguistics-1.0.5.gem
Successfully installed Linguistics-1.0.5
1 gem installed

Specifically, for this instance, it was done on Windows using my Cygwin
environment.

Trans

10/17/2008 3:16:00 AM

0



On Oct 16, 10:59=A0pm, "Hunt Jon" <jona.hunt...@gmail.com> wrote:
> Hi,
>
> I have a problem with installing gem: linguistics.
>
> sudo gem install linguistics
>
> Gave me "not found" error. So I googled and found the source here.http://=
www.deveiate.org/projects/Linguistics/
> The gem seems to be located athttp://www.deveiate.org/code/Lingu...
0.5.gem
>
> I don't know how I can install this gem.

I'm assuming you have RubyGems installed already. Just download
the .gem file and then use a terminal/console:

Linux:

$ sudo gem install Linguistics-1.0.5.gem

Windows:

> gem install Linguistics-1.0.5.gem

T.

Hunt Jon

10/17/2008 6:01:00 AM

0

I'm still getting the same error.

I downloaded the "Linguistics-1.0.5.gem.tar" file on my desktop.
Then, I double-clicked and expanded and now there is a new directory
"Linguistics-1.0.5.gem" on my desktop.
Next, I launch Terminal and `cd` to desktop. `cd ~/Desktop`.

Then, I run

sudo gem install Linguistics-1.0.5.gem

The error I get is:

ERROR: could not find gem Linguistics-1.0.5.gem locally or in a repository


I wonder where gem is searching locally. I may need to place the .gem
directory somewhere specified.

I ran `gem environment` and here's output.

gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.2.0
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- EXECUTABLE DIRECTORY: /opt/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-9
- GEM PATHS:
- /opt/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge...., "http://gems.github...]
- REMOTE SOURCES:
- http://gems.ruby...
- http://gems....

Hunt Jon

10/17/2008 6:22:00 AM

0

Solved.

I opened up the directory "Linguistics-1.0.5.gem" and found two files
"metadata.tar.gz" and "data.gz".
I extracted both archives, and "cd"ed to "data" directory.

There I ran a command.

pwd #=> /Users/myusernamei/Desktop/Linguistics-1.0.5.gem/data
sudo gem install Linguistics

Now the installation was successful.

Thanks for your help, guys.