-
25 Aug 2012 4:26 PM #181
Same problem after installing XCode 4.5
Same problem after installing XCode 4.5
Hi, All
I have installed Xcode 4.5 with command line tool. But no difference.
Does anyone have any idea?Code:Unix:WebServer DoYoungMin$ sudo gem install jsduck Password: Building native extensions. This could take a while... ERROR: Error installing jsduck: ERROR: Failed to build gem native extension. /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb checking for random()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby --with-rdiscount-dir --without-rdiscount-dir --with-rdiscount-include --without-rdiscount-include=${rdiscount-dir}/include --with-rdiscount-lib --without-rdiscount-lib=${rdiscount-dir}/lib /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:476:in `try_link' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:619:in `try_func' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:893:in `have_func' from extconf.rb:5:in `<main>' Gem files will remain installed in /Users/DoYoungMin/.rvm/gems/ruby-1.9.3-p0/gems/rdiscount-1.6.8 for inspection. Results logged to /Users/DoYoungMin/.rvm/gems/ruby-1.9.3-p0/gems/rdiscount-1.6.8/ext/gem_make.out
-
25 Aug 2012 6:20 PM #182
-
26 Aug 2012 1:46 PM #183
Thanks
Thanks
Thank you shmeltex, but, no difference. Do you have any idea?
Code:mac:~ DoYoungMin$ sudo gem install jsduckPassword: Building native extensions. This could take a while... ERROR: Error installing jsduck: ERROR: Failed to build gem native extension. /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb checking for random()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby --with-rdiscount-dir --without-rdiscount-dir --with-rdiscount-include --without-rdiscount-include=${rdiscount-dir}/include --with-rdiscount-lib --without-rdiscount-lib=${rdiscount-dir}/lib /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:476:in `try_link' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:619:in `try_func' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:893:in `have_func' from extconf.rb:5:in `<main>' Gem files will remain installed in /Users/DoYoungMin/.rvm/gems/ruby-1.9.3-p0/gems/rdiscount-1.6.8 for inspection. Results logged to /Users/DoYoungMin/.rvm/gems/ruby-1.9.3-p0/gems/rdiscount-1.6.8/ext/gem_make.out
-
26 Aug 2012 10:58 PM #184
The problem still seems to be simply having the compiler available. Try if you can use the clang command.
Could you post the contents of /Users/DoYoungMin/.rvm/gems/ruby-1.9.3-p0/gems/rdiscount-1.6.8/ext/gem_make.out
-
27 Aug 2012 2:30 AM #185
Hi, renku
here is,
and, gem_make.out is,Code:Last login: Mon Aug 27 13:39:53 on ttys000mac:~ DoYoungMin$ clang -bash: clang: command not found mac:~ DoYoungMin$
Code:mac:ext DoYoungMin$ vim gem_make.out /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb checking for random()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby --with-rdiscount-dir --without-rdiscount-dir --with-rdiscount-include --without-rdiscount-include=${rdiscount-dir}/include --with-rdiscount-lib --without-rdiscount-lib=${rdiscount-dir}/lib /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0' from /Users/DoYoungMin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:476:in `try_link' "gem_make.out" [readonly] 39L, 2160C
-
27 Aug 2012 4:00 AM #186
So it still seems to be the case that you are missing a C compiler. Or at least it's not available from command line. But I'm only barely familiar with Xcode, so I don't really know how to help you out with that.
You might want to try installing the bare GCC instead: https://github.com/kennethreitz/osx-gcc-installer
-
27 Aug 2012 6:31 AM #187
Here are the steps to get things rolling on OSX with the latest Xcode:
* Install Xcode from App Store
* Start Xcode, go to Preferences > Downloads > Components and install Command Line Tools
* Install RVM and Ruby 1.9.3
* Set newly installed Ruby as defaultCode:$ curl -L https://get.rvm.io | bash -s stable --ruby
* Install jsduckCode:$ rvm use 1.9.3 --default
And all should be good to go.Code:$gem install jsduck
-
27 Aug 2012 6:27 PM #188
It works..
It works..
Thank you all.
Today, I had better read some unix book before proceeding.
-
14 Sep 2012 5:52 AM #189
JSDuck 4.1.1 released
This is mostly a cleanup release with lots of refactoring gone into the internals. Some features have been removed completely: --export=api and --stats are now gone, hopefully nobody will be missing these.
A few features have been added too:
- Guides/videos/examples can now be placed into nested groups (a much requested addition).
- Support for iPad and other mobile devices through a basic mobile UI
- Automatic detection of @chainable tag. (JSDuck now does some code analyzes to see if a function always returns this).
- Parameter types are no more shown in method signatures. This makes the methods list look much less cluttered.
- Return values of constructors no more default to Object - instead they default to the class itself.
See the changelog for details.
-
17 Sep 2012 1:01 AM #190
Feature Idea
Feature Idea
Hi renku,
Had an idea for a feature: How about a @doccontact tag that works like @docauthor but for an email address?
Jsduck could have an additional flag that tells it to email parse errors to the relevant @doccontact after the generator has been run. This could be really useful in larger teams.
Lee


Reply With Quote