-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `downcase' for nil:NilClass #3
Comments
Hi, /Users/fps/.rvm/gems/ruby-2.0.0-p247/gems/dowl-0.7/lib/dowl/util.rb:46:in from /Users/fps/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in eval' from /Users/fps/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in '
Could be my fault, as I had to upgrade ruby (I had 1.8.7 installed, too old), and I'm not used to these things (Basicall, I followed more or less the steps described here: http://net.tutsplus.com/tutorials/ruby/how-to-install-ruby-on-a-mac/ ) |
Hi @fpservant, You should check out YOWL - our fork of this repo, which contains numerous fixes (including I believe the one regarding the issue you're experiencing) as well as compatibility with modern ruby versions and installation via bundler/gem. |
Also, for ruby installations I highly recommend using RVM as it provides painless management of multiple ruby installations / gem management (a lot like Python's virtualenv, if you have experience with that sort of thing). |
Travis, thanks for your message (I didn't answer earlier, because it had been classified as spam by my mailer :-( ) Well, I had tried to install YOWL, from I just tried now from and I get the same error: raptor_internal.h:855:24: error: curl/types.h: No such file or directory Making all in src It's probably my fault, as I'm not really used to these kinds of things. Anyway, thank you fps Le 24 août 2013 à 20:17, Travis Kaufman [email protected] a écrit :
|
curl/types.h: No such file or directory Can you check to make sure you have libcurl installed by running the following command? $ which curl If you don't see anything then you need to install libcurl on your system. If you're using macports just do $ sudo port install curl And try running the script again. Let me know if this helps. |
Alternatively if you do find the curl binary you may just have to set your linker path to the directory where the curl header files are located ( |
It's not the curl binary that's missing, but the curl types.h file, which is part of the sources of curl. I remember going through all this sh&% before but don't remember exactly how I got through it. Actually thought I had it all documented in the README.md :-). One thing I do remember is that there's a relevant difference between the last version of Mac OS X and previous versions. The trouble is all caused by the fact that we depend on libraptor1 via rdf-raptor which is basically no longer supported by installers like Macports etc. As soon as rdf-raptop upgrades to libraptor2 all these nasty build problems will be gone. |
What could help is to install the Mac OS X SDK which has curl/types.h |
I know, its all way too painful and makes using YOWL on Mac OS X basically impossible for non-geeks |
Travis, Jacobus, I appreciate your help but I'm probably not geek enough to get it working I have curl installed, I have XCode (4.6.3) installed - but I don't seem to find curl/types.h anywhere on my disk.
I'm afraid I don't know how to do that So yes, it's quite difficult to have yowl running on os x when you're not a geek. Thanks anyway, fps Le 27 août 2013 à 19:47, Travis Kaufman [email protected] a écrit :
|
@fpservant I think its just a simple bug in the code, due to a missing label on a class or the schema. Are you able to share the ontology (or a minimal fragment of it)? |
Hi Leigh, thanks for the answer. Clearly, there are probably missing labels in I've put the file that I have been using here: Best, fps PS: Leigh, I think that we met once briefly, a long time ago: it was Leigh Dodds [email protected] a écrit :
|
@fpservant I think you have to install the Command Line Tools option in Xcode. Go to XCode/Preferences/Downloads/Components. That will install "core command line tools and system headers into system folders". |
Jacobus, nice try, but I had already done that (for other reasons, cf It's very kind of you to try to help me, and it is very serious to try Thanks again. Best Regards, fps Quoting Jacobus Geluk [email protected]:
|
Aargh... Well, just would like more people to run yowl and actually use it. Thinking of doing a complete rebuild in another language (Scala/Akka/Play) to get rid of the libraptor1 dependency (and a lot of other reasons). |
Leigh, you are right. I changed the end of util.rb to
and things are working (my first lines in ruby! :-)) Best, fps
|
/var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/util.rb:42:in
<=>': undefined method
downcase' for nil:NilClass (NoMethodError)from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in
list_classes' from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in
sort'from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in
list_classes' from (erb):38:in
run'from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/generator.rb:19:in
run' from /var/lib/gems/1.8/gems/dowl-0.2/bin/dowl:17 from /usr/local/bin/dowl:19:in
load'from /usr/local/bin/dowl:19
The text was updated successfully, but these errors were encountered: