This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 182928 - [69cat] [69cat][gems] Installation of gems from command line with built-in JRuby generates errors
Summary: [69cat] [69cat][gems] Installation of gems from command line with built-in JR...
Status: RESOLVED WONTFIX
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 16:05 UTC by esmithbss
Modified: 2010-03-26 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE from failed gem installation (418.07 KB, text/x-log)
2010-03-26 16:08 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2010-03-26 16:05:35 UTC
[ BUILD # : 201003260201 ]
[ JDK VERSION : 1.6.* ]

When running gem install command from the command line for the built-in jruby
system, a mkdir error is generated:


Here is the CLI output from the  <netbeans install dir>/ruby/jruby-1.4.0/bin
folder.

./jruby -S gem update
Updating installed gems
Updating actionmailer
ERROR:  While executing gem ... (SystemCallError)
    Unknown error - mkdir failed


./jruby -S gem install rails --no-ri --no-rdoc -v 2.3.4
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
ERROR:  While executing gem ... (SystemCallError)
    Unknown error - mkdir failed
Comment 1 esmithbss 2010-03-26 16:06:56 UTC
This is installed in a folder under my home directory.  I have full permissions to the folder and NetBeans is being run under my user id.
Comment 2 esmithbss 2010-03-26 16:07:58 UTC
An attempt to install gems through the IDE generated similar errors.  See attached log file and pasted text below:

JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
ERROR:  While executing gem ... (SystemCallError)
    Unknown error - mkdir failed
Comment 3 esmithbss 2010-03-26 16:08:29 UTC
Created attachment 95979 [details]
IDE from failed gem installation
Comment 4 Erno Mononen 2010-03-26 16:12:34 UTC
This is a JRuby issue, I think I saw somewhere that the problem is related to
permissions of <your_home_dir>.gem/ - do you have such a dir? Can you check the
permissions for it?
Comment 5 esmithbss 2010-03-26 20:14:14 UTC
That was it.  I had a file deep in my .gem tree that had bad permissions.  Fixed it and things are working now.

Marking as FIXED WONTFIX.