maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] Compilation errors in Ruby 1.9.2 make (https://talk.maemo.org/showthread.php?t=97305)

cHeXs7eR 2016-08-19 22:38

Compilation errors in Ruby 1.9.2 make
 
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.

nieldk 2016-08-20 18:06

Re: Compilation errors in Ruby 1.9.2 make
 
Seems you probably have a typo somewhere in your parameters (configure)

cHeXs7eR 2016-08-21 09:53

Re: Compilation errors in Ruby 1.9.2 make
 
Quote:

Originally Posted by nieldk (Post 1513072)
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?

nieldk 2016-08-21 10:30

Re: Compilation errors in Ruby 1.9.2 make
 
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 &&



All times are GMT. The time now is 23:09.

vBulletin® Version 3.8.8