Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How to install/configure ruby as a non-root user

Reply
Thread Tools

How to install/configure ruby as a non-root user

 
 
Pra Bhandar
Guest
Posts: n/a
 
      02-18-2009
Hi,
I am trying to install ruby as a non-root user. I found that with
-prefix this works fine. I am thinking this has something to do with
library path settings. However, I am not sure how to go about figuring
this out. Any help would be highly appreciated.

rh511grac1:unset> ./server.rb
/kernel.rb:18:in `include': wrong argument type Class (expected Module)
(TypeError)
from ./kernel.rb:18
from ./server.rb:5:in `require'
from ./server.rb:5

Thanks.

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

 
Reply With Quote
 
 
 
 
Florian Gilcher
Guest
Posts: n/a
 
      02-18-2009

On Feb 18, 2009, at 6:08 AM, Pra Bhandar wrote:
>
> rh511grac1:unset> ./server.rb
> ./kernel.rb:18:in `include': wrong argument type Class (expected
> Module)
> (TypeError)
> from ./kernel.rb:18
> from ./server.rb:5:in `require'
> from ./server.rb:5



Is server your own code?

If yes, you are just doing something wrong (by calling include with a
Class, not a Module[1]). If this is not your code, contact the author.

This is no problem of the installation.

Regards,
Florian

[1]: If you don't know the difference, read any tutorial on Ruby.

--
Florian Gilcher

smtp:
jabber:
gpg: 533148E2


 
Reply With Quote
 
 
 
 
Pra Bhandar
Guest
Posts: n/a
 
      02-18-2009
Florian Gilcher wrote:
> On Feb 18, 2009, at 6:08 AM, Pra Bhandar wrote:
>>
>> rh511grac1:unset> ./server.rb
>> ./kernel.rb:18:in `include': wrong argument type Class (expected
>> Module)
>> (TypeError)
>> from ./kernel.rb:18
>> from ./server.rb:5:in `require'
>> from ./server.rb:5

>
>
> Is server your own code?
>
> If yes, you are just doing something wrong (by calling include with a
> Class, not a Module[1]). If this is not your code, contact the author.
>
> This is no problem of the installation.
>
> Regards,
> Florian
>
> [1]: If you don't know the difference, read any tutorial on Ruby.
>
> --
> Florian Gilcher
>
> smtp:
> jabber:
> gpg: 533148E2


Hi Florian,

Yes, the server.rb and kernel.rb is internal code. I was starting to go
down that path that you suggested and was thrown off by this one fact.
If I use the default ruby interpreter that was preinstalled in /usr/bin
then I don't get that error. Is there some type of flag that is doing
internal error handling automatically for me in the /usr/bin/ruby that
my install of ruby is not setup to do.

Thank you very much for your response.


Prakash





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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
[ANN] October Phoenix Ruby User Group Meeting: Ruby + Wii James Britt Ruby 0 10-10-2008 02:58 PM
[ANN] - Ruby Ireland - Irish ruby and rails user group Aidan Finn Ruby 0 06-30-2006 10:16 AM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
[ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge guillaume.pierronnet@ratp.fr Ruby 0 08-31-2003 11:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57