Forum: Ruby newcocoa, command not found?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
anne001 (Guest)
on 2007-06-04 16:01
(Received via mailing list)
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/
opt/local/bin:/private/opt/local/lib:/private/opt/local/sbin:/bin:/
sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin/:

what could be the problem? I installed the latest ruby and rubycocoa
successfully as far as I know.
anne001 (Guest)
on 2007-06-04 18:15
(Received via mailing list)
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/
opt/local/bin:/private/opt/local/lib:/private/opt/local/sbin:/bin:/
sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin/:
anne001 (Guest)
on 2007-06-05 00:07
(Received via mailing list)
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

/usr/lib/ruby182/site_ruby/1.8/powerpc-darwin8.0/rubycocoa.bundle

/private/opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.3.0/
rubycocoa.bundle

/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.7.0/rubycocoa.bundle

$PATH
 /opt/local/bin:/opt/local/lib:/opt/local/sbin:/usr/local/bin:/usr/
local/sbin:/private/opt/local/bin:/private/opt/local/lib:/private/opt/
local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin/:

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
["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'
        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/
newcocoa:66
        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/
newcocoa:64
        from /opt/local/bin/newcocoa:16:in `load'
        from /opt/local/bin/newcocoa:16
Laurent S. (Guest)
on 2007-06-05 00:47
(Received via mailing list)
Hi,

On 6/4/07, anne001 <removed_email_address@domain.invalid> 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?

Laurent
This topic is locked and can not be replied to.