Active Topics

 



Notices


Reply
Thread Tools
Posts: 26 | Thanked: 56 times | Joined on Jul 2016 @ Where do I live?
#1
I've been trying to build Ruby 1.9.2 from source, but I'm having some problems when using make. I can see lots of o: command not found errors, but the main problem comes when the makefile generates Rdoc documentation:

Code:
Generating RDoc documentation
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/runruby.rb --extout=.ext  -- "./bin/rdoc" --no-force-update --all --ri --op ".ext/rdoc"  "."
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- etc (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rubygems.rb:17:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:gem_prelude>:167:in `load_full_rubygems_library'
    from <internal:gem_prelude>:217:in `try_activate'
    from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rdoc/markup/parser.rb:1:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rdoc/markup.rb:121:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rdoc/markup/preprocess.rb:1:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rdoc/parser.rb:3:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /opt/ruby-1.9.2-p0/lib/rdoc/rdoc.rb:3:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from ./bin/rdoc:11:in `<main>'
make: *** [rdoc] Error 1
It seems to be lacking some kind of file, but I'm not sure about what to do.
 
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#2
Seems you probably have a typo somewhere in your parameters (configure)
 
Posts: 26 | Thanked: 56 times | Joined on Jul 2016 @ Where do I live?
#3
Originally Posted by nieldk View Post
Seems you probably have a typo somewhere in your parameters (configure)
Configure is a 17000+ auto generated file (made by Autoconf). However, I'm finding my Makefile has some empty parameters, bit I don't know what to type in. Some variables are undefined, such as:

Code:
empty = 
OUTLINE = -o $(empty)
Which lead to chains of undefined variables, the first defined is $OUTLINE, which makes the file run a bizarre -o command. Any clue?
 
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#4
Not sure why you use autoconf ? Did you run autoreconf ?

I just compile it simply using configure script

Code:
./configure --prefix=/usr   \
            --enable-shared \
            --docdir=/usr/share/doc/ruby-2.3.1 &&
 
Reply

Tags
compilation, makefile, ruby-1.9.2, source


 
Forum Jump


All times are GMT. The time now is 19:31.