https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112010-05-09T00:26:44ZRuby Issue Tracking SystemRuby master - Bug #3255: Trunk fail to build without explicit ./configure options (yaml.h not found)https://redmine.ruby-lang.org/issues/3255?journal_id=108772010-05-09T00:26:44ZEregon (Benoit Daloze)
<ul></ul><p>=begin<br>
Hi,</p>
<p>I tried again today, and it works without configuration,</p>
<p>but I need to</p>
<p>make # fail with 'libyaml missing'<br>
make clean<br>
make # OK</p>
<p>Do anyone have an idea why I get these results?</p>
<p>Regards,<br>
B.D.</p>
<p>PS: Probably the precedant message's cause can be replaced by this one.</p>
<p>=end</p> Ruby master - Bug #3255: Trunk fail to build without explicit ./configure options (yaml.h not found)https://redmine.ruby-lang.org/issues/3255?journal_id=108932010-05-09T21:39:44ZEregon (Benoit Daloze)
<ul></ul><p>=begin<br>
Hi,<br>
On 8 May 2010 19:51, Aaron Patterson <a href="mailto:aaron@tenderlovemaking.com" class="email">aaron@tenderlovemaking.com</a> wrote:</p>
<blockquote>
<p>You're getting that result because ext/psych/extconf.rb doesn't know<br>
where to find your installation of libyaml. You need to provide<br>
configure with the location of your libyaml installation.</p>
<p>For example, if you've installed libyaml via macports, you should build<br>
like this:</p>
<p> $ ./configure --with-libyaml-dir=/opt/local<br>
$ make</p>
<p>Hope that helps!</p>
<p>--<br>
Aaron Patterson</p>
</blockquote>
<p>Yes, thanks for the hint.<br>
I searched a bit for which configure option is with libyaml, but<br>
completing option did not work.</p>
<p>So this method, as the first one works.</p>
<p>But, it seems the problem is even bigger.</p>
<p>I'm currently using rvm, and so I did: "rvm install ruby-head -C<br>
--with-libyaml-dir=/opt/local"</p>
<p>Which apparently works, seeing the first line of config.log:<br>
$ ./configure --prefix=/Users/benoitdaloze/.rvm/rubies/ruby-head<br>
--with-libyaml-dir=/opt/local</p>
<p>But I still get:<br>
Error running 'make -j 3', please check<br>
/Users/benoitdaloze/.rvm/log/ruby-head/make*.log</p>
<p>The make error log just complains about libyaml, and not finding miniruby.</p>
<p>So I went myself in the src (.rvm/src/ruby-head)</p>
<p>And using 'make' it works.<br>
But using 'make -j 3' I get the error.<br>
(before each 'make' command I did a 'make clean')</p>
<p>I don't know much about the syntax of make,<br>
but as far as I know '-j 3' was just to specify the number of<br>
threads/processes gcc can use.</p>
<p>So here is the output of 'make' and the one of 'make -j 3':<br>
<a href="https://gist.github.com/c8034f83cc9afbf79e6b" class="external">https://gist.github.com/c8034f83cc9afbf79e6b</a></p>
<p>Regards,<br>
B.D.</p>
<p>=end</p> Ruby master - Bug #3255: Trunk fail to build without explicit ./configure options (yaml.h not found)https://redmine.ruby-lang.org/issues/3255?journal_id=112932010-05-28T00:16:48Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
Hi,</p>
<blockquote>
<p>But I still get:<br>
Error running 'make -j 3', please check<br>
/Users/benoitdaloze/.rvm/log/ruby-head/make*.log</p>
</blockquote>
<p>This would be fixed at r27717.<br>
If you still have a problem, please inform us.</p>
<blockquote>
<p>I'm currently using rvm, and so I did: "rvm install ruby-head -C<br>
--with-libyaml-dir=/opt/local"</p>
</blockquote>
<p>When you report a bug, could you test it without rvm?<br>
It is for excluding possible causes.</p>
<p>Thanks!</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p>