From: Marco R. <mar...@ya...> - 2005-07-16 21:03:12
|
Greetings, I'm trying to install ruby-cocoa 0.4.1 on a Mac with OS X 10.4. The installation itself ends without any error, but while I can build and run programs with XCode, I'm unable to run scripts from the command line. I get the following error message when I try to load the libraries: > require 'osx/cocoa' LoadError: No such file to load -- osx/cocoa from (irb):1:in `require' from (irb):1 If I'm not wrong I should find something cocoa.rb in /usr/lib/ruby/site_ruby/1.8/osx, but instead I find only the following files: addressbook.rb aeosa/ aeosa.rb What I could do to fix it ? Thanks, Marco ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it |
From: Jonathan P. <jp...@dc...> - 2005-07-17 08:31:10
|
On 16 Jul 2005, at 21:59, Marco Righele wrote: > If I'm not wrong I should find something cocoa.rb in /usr/lib/ruby/ > site_ruby/1.8/osx, but instead I find only the following files: > > addressbook.rb > aeosa/ > aeosa.rb > > What I could do to fix it ? > Is there any chance you have more than one copy of ruby installed (e.g., from darwinports in /opt/local or from fink in /sw or self- installed in /usr/local)? If so, perhaps the files got installed for another ruby than the Apple-installed one in /usr. You could do a Spotlight search-by-name for 'rubycocoa.bundle' to see where that got installed. You'd expect it at /usr/lib/ruby/site_ruby/1.8/powerpc-darwin7.<<something>>/ rubycocoa.bundle Another alternative is to do the install manually. Copy rubycocoa.bundle from rubycocoa-0.4.1/ext/rubycocoa/rubycocoa.bundle into the above path Copy the 'osx' directory from rubycocoa-0.4.1/framework/src/ruby/osx into the path you identified into your original email. I realise that's an unsatisfactory solution, but without more info it's hard to tell where the install went wrong. Hope that helps, Jonathan |
From: Marco R. <mar...@ya...> - 2005-07-17 13:16:18
|
First of all thanks for your answer. Jonathan Paisley wrote: > > Is there any chance you have more than one copy of ruby installed > (e.g., from darwinports in /opt/local or from fink in /sw or self- > installed in /usr/local)? If so, perhaps the files got installed for > another ruby than the Apple-installed one in /usr. > I removed darwinports ruby just before installing ruby-cocoa, and in fact there is no 'rubycocoa.bundle' anywere on the disk, so I guess it must be something else. > Another alternative is to do the install manually. Copy > rubycocoa.bundle from > > rubycocoa-0.4.1/ext/rubycocoa/rubycocoa.bundle into the above path > > Copy the 'osx' directory from > > rubycocoa-0.4.1/framework/src/ruby/osx > > into the path you identified into your original email. > I can't find rubycocoa.bundle in the RubyCocoa-0.4.1-tiger.dmg image I downloaded from sourceforge, but it is present in RubyCocoa-0.4.1-panther.dmg. Same thing for the other missing files. Could it be a problem of the tiger version of the package , or should I find them somewhere else ? Thanks, Marco ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it |
From: Jonathan P. <jp...@dc...> - 2005-07-17 13:38:49
|
> > I can't find rubycocoa.bundle in the RubyCocoa-0.4.1-tiger.dmg > image I downloaded from sourceforge, but it is present in > RubyCocoa-0.4.1-panther.dmg. Same thing for the other missing > files. Could it be a problem of the tiger version of the package , > or should I find them somewhere else ? Ah! I wrongly assumed in my original message that you were installing from source. I haven't tried any of the binary packages. But I just took a look at the RubyCocoa-0.4.1-tiger.dmg file and it seems that the installer package is missing the necessary files to use RubyCocoa from the command line (via irb or plain ruby). Hopefully the person who created it can fix it. Until that is fixed, if you're able, you could install RubyCocoa from source. That should install the necessary files. Jonathan |
From: Marco R. <mar...@ya...> - 2005-07-17 15:55:52
|
Jonathan Paisley wrote: > Ah! I wrongly assumed in my original message that you were installing > from source. > > I haven't tried any of the binary packages. But I just took a look at > the RubyCocoa-0.4.1-tiger.dmg file and it seems that the installer > package is missing the necessary files to use RubyCocoa from the > command line (via irb or plain ruby). Hopefully the person who > created it can fix it. > > Until that is fixed, if you're able, you could install RubyCocoa from > source. That should install the necessary files. > > Jonathan It seems that there are a few issues with the install process, and maybe that's the root of the problems with the package (or maybe it's just that my system is messed up so things are not working as expected :D). The install script expect to find the folder 'framework/build/RubyCocoa.build', but instead there is a 'framework/build/Default/RubyCocoa.framework' folder. Copying the folder (not moving, part of the install script looks in the right place) to the parent directory seemed to fix the problem and now I'm happily playing with shell (cocoa) scripts. Thanks again, Marco ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.beta.messenger.yahoo.com |
From: Jonathan P. <jp...@dc...> - 2005-07-17 16:18:58
|
On 17 Jul 2005, at 16:52, Marco Righele wrote: > The install script expect to find the folder 'framework/build/ > RubyCocoa.build', but instead there is a 'framework/build/Default/ > RubyCocoa.framework' folder. Copying the folder (not moving, part > of the install script looks in the right place) to the parent > directory seemed to fix the problem and now I'm happily playing > with shell (cocoa) scripts. > That is due to a change in Xcode 2.1. Previously, built products were placed in the 'build' directory directly. Xcode 2.1 separates them by build configuration -- that's the 'Default' directory you're seeing (thus saving on rebuilds when switching between configurations). Glad you got it to work :) Jonathan |
From: kimura w. <ki...@us...> - 2005-07-19 12:35:31
|
Hi, I wrote a patch. We will release a patched source distribution of 0.4.1. Sun, 17 Jul 2005 17:18:45 +0100, Jonathan Paisley wrote: > >On 17 Jul 2005, at 16:52, Marco Righele wrote: > >> The install script expect to find the folder 'framework/build/ >> RubyCocoa.build', but instead there is a 'framework/build/Default/ >> RubyCocoa.framework' folder. Copying the folder (not moving, part >> of the install script looks in the right place) to the parent >> directory seemed to fix the problem and now I'm happily playing >> with shell (cocoa) scripts. >> > >That is due to a change in Xcode 2.1. > >Previously, built products were placed in the 'build' directory >directly. Xcode 2.1 separates them by build configuration -- that's >the 'Default' directory you're seeing (thus saving on rebuilds when >switching between configurations). > >Glad you got it to work :) > >Jonathan > -------------- diff -ur rubycocoa-0.4.1.orig/framework/pre-install.rb rubycocoa-0.4.1/framework/pre-install.rb --- rubycocoa-0.4.1.orig/framework/pre-install.rb 2002-12-28 02:57:59.000000000 +0900 +++ rubycocoa-0.4.1/framework/pre-install.rb 2005-07-19 01:22:39.000000000 +0900 @@ -1,9 +1,18 @@ install_root = @config['install-root'] +obj_path = 'build' +if File.basename(buildcommand) == 'xcodebuild' + if /DevToolsCore-(\d+)/.match(`#{buildcommand} -version`) + xcode_version = $1.to_i + else + xcode_version = 0 # unknown(< Xcode 2.0?) + end + obj_path = "#{obj_path}/Default" if xcode_version >= 620 +end # strip symbols for diet of the object file. fwname = @config['framework-name'] curdir = Dir.pwd -Dir.chdir "build/#{fwname}.framework/Versions/Current" +Dir.chdir "#{obj_path}/#{fwname}.framework/Versions/Current" command "strip -x #{fwname}" Dir.chdir curdir @@ -21,4 +30,4 @@ command "mv '#{framework_path}' '#{backup_dir}/'" end command "mkdir -p '#{frameworks_dir}'" -command "cp -R 'build/#{framework_name}' '#{framework_path}'" +command "cp -R '#{obj_path}/#{framework_name}' '#{framework_path}'" -------------- -- kimura wataru <mailto:kimuraw@i.nifty.jp> |
From: kimura w. <ki...@us...> - 2005-07-24 04:31:54
|
Hi, We released a patched source archive of version 0.4.1. http://prdownloads.sourceforge.net/rubycocoa/rubycocoa-0.4.1-xcode-2.1-patched.tgz (MD5: ce498e990a4ac9de289c839aaa0c0b57) Tue, 19 Jul 2005 21:35:10 +0900, kimura wataru wrote: >Hi, > >I wrote a patch. We will release a patched source distribution >of 0.4.1. > Sorry, that patch is not complete. We needed to modify extconf.rb.in about build process of a extention module, rubycococa.bundle. The released arhive includes this modification. -- kimura wataru |