Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

newcocoa, command not found?

I installed new cocoa from gem:

>sudo gem install newcocoa
>Successfully installed newcocoa-0.0.4
>Installing ri documentation for newcocoa-0.0.4...
>Installing RDoc documentation for newcocoa-0.0.4...

But I can't run newcocoa as per tutorial
anne-g-2:~/Desktop/cocoa anne$ newcocoa HelloWorld
-bash: newcocoa: command not found

my path has everything imaginable on it
-bash: /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/private/

what could be the problem? I installed the latest ruby and rubycocoa
successfully as far as I know.

It seems it is just a path problem as I can invoke newcocoa directly
but what is the problem?

anne-g-2:~/Desktop/cocoa anne$ newcocoa dud
-bash: newcocoa: command not found

anne-g-2:~/Desktop/cocoa anne$ /opt/local/bin/newcocoa dud
creating: dud
creating: Rakefile
creating: README
creating: other templates
NOW, Edit Rakefile

anne-g-2:~/Desktop/cocoa anne$ $PATH
-bash: /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/private/

I thought /opt/local/bin was the same as /private/opt/local/bin
but it isn't.

I had to add it to the path and then newcocoa was found.
I have 3 rubycocoas





I seem to have all possible paths on there, but newcocoa is still
having trouble. How do I find what the trouble is?

newcocoa -c
Generating class skeltons from  `English.lproj/Main.nib' ...
`gem_original_require': no such file to load -- osx/cocoa (LoadError)
        from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/newcocoa-0.0.4/bin/
newcocoa:25:in `convert'
        from /opt/local/lib/ruby/gems/1.8/gems/newcocoa-0.0.4/bin/
        from /opt/local/lib/ruby/gems/1.8/gems/newcocoa-0.0.4/bin/
newcocoa:64:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/newcocoa-0.0.4/bin/
        from /opt/local/bin/newcocoa:16:in `load'
        from /opt/local/bin/newcocoa:16


On 6/4/07, anne001 <a@wjh.harvard.edu> wrote:

> newcocoa -c
> ["English.lproj/Main.nib"]
> Generating class skeltons from  `English.lproj/Main.nib' ...
> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- osx/cocoa (LoadError)
>         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require'


Did you install RubyCocoa before?


Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc