<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building LAPACK and Ruby&#8217;s linalg on Mac OS X</title>
	<atom:link href="http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/</link>
	<description>Online Communities and Web Development</description>
	<lastBuildDate>Fri, 02 Dec 2011 07:47:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: How do I install ruby linalg library on Mac? - Quora</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-780</link>
		<dc:creator>How do I install ruby linalg library on Mac? - Quora</dc:creator>
		<pubDate>Fri, 02 Dec 2011 07:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-780</guid>
		<description>[...] stories going back to 2008 and it looks like there was a patch in plans but it never came to life: http://www.commonmediainc.com/20... and here http://www.pauldix.net/2008/06/i...http://rubyforge.org/forum/forum...Regardless of these [...]</description>
		<content:encoded><![CDATA[<p>[...] stories going back to 2008 and it looks like there was a patch in plans but it never came to life: <a href="http://www.commonmediainc.com/20..">http://www.commonmediainc.com/20..</a>. and here <a href="http://www.pauldix.net/2008/06/i...http://rubyforge.org/forum/forum...Regardless">http://www.pauldix.net/2008/06/i&#8230;http://rubyforge.org/forum/forum&#8230;Regardless</a> of these [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Burgoon</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-440</link>
		<dc:creator>John Burgoon</dc:creator>
		<pubDate>Wed, 18 Mar 2009 21:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-440</guid>
		<description>Thanks so much for this page.  I followed the advice from #10 above for Mac Leopard and it ran like a charm.  The TIMER = INT_CPU_TIME setting worked for me, too.

One note: In my case, I ran the script as shown to edit the make.inc, then manually edited the make.inc to say &quot;gfortran&quot; instead of &quot;g77&quot;.  THEN I commented out the sed stuff in the script (so it wouldn&#039;t overwrite my changes) and then ran the script again.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this page.  I followed the advice from #10 above for Mac Leopard and it ran like a charm.  The TIMER = INT_CPU_TIME setting worked for me, too.</p>
<p>One note: In my case, I ran the script as shown to edit the make.inc, then manually edited the make.inc to say &#8220;gfortran&#8221; instead of &#8220;g77&#8243;.  THEN I commented out the sed stuff in the script (so it wouldn&#8217;t overwrite my changes) and then ran the script again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James M. Lawrence</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-363</link>
		<dc:creator>James M. Lawrence</dc:creator>
		<pubDate>Sun, 07 Sep 2008 14:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-363</guid>
		<description>These issues should be fixed in the new release, which I have gratuitously called 1.0.0.

After I applied Luis Parravicini&#039;s patch to use g2c, then replaced all &#039;.so&#039; instances with CONFIG[&quot;DLEXT&quot;], it worked immediately.  I installed g77 from http://hpc.sourceforge.net .

There is a new Mac binary available for the new release http://rubyforge.org/frs/?group_id=273

Thanks to all who provided help during my extended hiatus.</description>
		<content:encoded><![CDATA[<p>These issues should be fixed in the new release, which I have gratuitously called 1.0.0.</p>
<p>After I applied Luis Parravicini&#8217;s patch to use g2c, then replaced all &#8216;.so&#8217; instances with CONFIG["DLEXT"], it worked immediately.  I installed g77 from <a href="http://hpc.sourceforge.net" rel="nofollow">http://hpc.sourceforge.net</a> .</p>
<p>There is a new Mac binary available for the new release <a href="http://rubyforge.org/frs/?group_id=273" rel="nofollow">http://rubyforge.org/frs/?group_id=273</a></p>
<p>Thanks to all who provided help during my extended hiatus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wilk</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-362</link>
		<dc:creator>Joseph Wilk</dc:creator>
		<pubDate>Thu, 04 Sep 2008 09:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-362</guid>
		<description>This worked for me on Leopard 10.5.4, Ruby 1.8.7, 
gfortran: 4.3.0, lapack-3.1.1.

I had to follow Rob Rambos advice and run 
&quot;sudo ln -s /sw/include/f2c.h /usr/local/include/&quot;

I also had to manually copy over the linalg.bundle and lapack.bundle from my linalg build to my ruby site_ruby folder (/local/lib/ruby/site_ruby/1.8/i686-darwin9).

I found it useful to run the linalg extconf.rb files directly for lapack and linalg to find out why things where not working:

cd ext/lapack/; ruby extconf.rb
cd ext/linalg/; ruby extconf.rb</description>
		<content:encoded><![CDATA[<p>This worked for me on Leopard 10.5.4, Ruby 1.8.7,<br />
gfortran: 4.3.0, lapack-3.1.1.</p>
<p>I had to follow Rob Rambos advice and run<br />
&#8220;sudo ln -s /sw/include/f2c.h /usr/local/include/&#8221;</p>
<p>I also had to manually copy over the linalg.bundle and lapack.bundle from my linalg build to my ruby site_ruby folder (/local/lib/ruby/site_ruby/1.8/i686-darwin9).</p>
<p>I found it useful to run the linalg extconf.rb files directly for lapack and linalg to find out why things where not working:</p>
<p>cd ext/lapack/; ruby extconf.rb<br />
cd ext/linalg/; ruby extconf.rb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Kyle</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-360</link>
		<dc:creator>James Kyle</dc:creator>
		<pubDate>Sat, 23 Aug 2008 15:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-360</guid>
		<description>To fix the ld errors for etime, edit the make.inc @ approx line 29.

Comment out TIMER = EXT_ETIME

Uncomment TIMER = INT_CPU_TIME

This worked for me on Leopard 10.5.4, macports gcc43&#039;s gfortran-mp, lapack-3.1.1.


Cheers,

James</description>
		<content:encoded><![CDATA[<p>To fix the ld errors for etime, edit the make.inc @ approx line 29.</p>
<p>Comment out TIMER = EXT_ETIME</p>
<p>Uncomment TIMER = INT_CPU_TIME</p>
<p>This worked for me on Leopard 10.5.4, macports gcc43&#8242;s gfortran-mp, lapack-3.1.1.</p>
<p>Cheers,</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-359</link>
		<dc:creator>Dimitris</dc:creator>
		<pubDate>Fri, 01 Aug 2008 14:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-359</guid>
		<description>Tim, Darrell,

I found that this helps (on OSX 10.4.11):

change lines 22 &amp; 23 in dsecnd_EXT_ETIME.f and second_EXT_ETIME.f to
REAL               EXT_ETIME
EXTERNAL           EXT_ETIME

Found here: http://www.pauldix.net/2008/06/installing-lina.html</description>
		<content:encoded><![CDATA[<p>Tim, Darrell,</p>
<p>I found that this helps (on OSX 10.4.11):</p>
<p>change lines 22 &amp; 23 in dsecnd_EXT_ETIME.f and second_EXT_ETIME.f to<br />
REAL               EXT_ETIME<br />
EXTERNAL           EXT_ETIME</p>
<p>Found here: <a href="http://www.pauldix.net/2008/06/installing-lina.html" rel="nofollow">http://www.pauldix.net/2008/06/installing-lina.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Rambo</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-354</link>
		<dc:creator>Rob Rambo</dc:creator>
		<pubDate>Fri, 04 Jul 2008 23:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-354</guid>
		<description>Thanks for the posting.  I had some issues with f2c.h not being found.  I am running OS X 10.5.2 and  the f2c.h header is in /sw/include.  Creating the following link fixed the problem.

sudo ln -s /sw/include/f2c.h /usr/local/include/</description>
		<content:encoded><![CDATA[<p>Thanks for the posting.  I had some issues with f2c.h not being found.  I am running OS X 10.5.2 and  the f2c.h header is in /sw/include.  Creating the following link fixed the problem.</p>
<p>sudo ln -s /sw/include/f2c.h /usr/local/include/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrell Swenson</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-348</link>
		<dc:creator>Darrell Swenson</dc:creator>
		<pubDate>Wed, 18 Jun 2008 18:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-348</guid>
		<description>I had the same problem as TIm.  I found the following link helpful.

http://gcc.gnu.org/ml/fortran/2007-02/msg00400.html

In my case the two files that needed editing were second_EXT_ETIME.f and dsecnd_EXT_ETIME.f</description>
		<content:encoded><![CDATA[<p>I had the same problem as TIm.  I found the following link helpful.</p>
<p><a href="http://gcc.gnu.org/ml/fortran/2007-02/msg00400.html" rel="nofollow">http://gcc.gnu.org/ml/fortran/2007-02/msg00400.html</a></p>
<p>In my case the two files that needed editing were second_EXT_ETIME.f and dsecnd_EXT_ETIME.f</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Bean</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-340</link>
		<dc:creator>David Bean</dc:creator>
		<pubDate>Sat, 03 May 2008 09:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-340</guid>
		<description>Ooops...one more hack I had to make:

My ruby install needed those .so dynamic libs to be named as .bundle. (!)  Then I had to hack my linalg.rb file to look like this:

require &#039;universal-darwin8.0/lapack.bundle&#039;
require &#039;universal-darwin8.0/linalg.bundle&#039;

Now I fire up IRB and do &#039;require &#039;linalg&#039;&#039; =&gt; true

whew,,,</description>
		<content:encoded><![CDATA[<p>Ooops&#8230;one more hack I had to make:</p>
<p>My ruby install needed those .so dynamic libs to be named as .bundle. (!)  Then I had to hack my linalg.rb file to look like this:</p>
<p>require &#8216;universal-darwin8.0/lapack.bundle&#8217;<br />
require &#8216;universal-darwin8.0/linalg.bundle&#8217;</p>
<p>Now I fire up IRB and do &#8216;require &#8216;linalg&#8221; =&gt; true</p>
<p>whew,,,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pjmorse</title>
		<link>http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/comment-page-1/#comment-333</link>
		<dc:creator>pjmorse</dc:creator>
		<pubDate>Wed, 23 Apr 2008 13:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.commonmediainc.com/2008/03/24/building-lapack-and-rubys-linalg-on-mac-os-x/#comment-333</guid>
		<description>Tim, which Fortran compiler are you using? The errors you&#039;re getting are missing files in the INSTALL subdirectory of the LAPACK distribution, which should be built early in the makefile. My make.log shows lines like 

g77  -o testsecond second_EXT_ETIME.o secondtst.o

...so if g77 (or whatever is masquerading as g77 on your system) isn&#039;t working properly, those won&#039;t get built, and when the makefile tries anything depending on them, it will fail.</description>
		<content:encoded><![CDATA[<p>Tim, which Fortran compiler are you using? The errors you&#8217;re getting are missing files in the INSTALL subdirectory of the LAPACK distribution, which should be built early in the makefile. My make.log shows lines like </p>
<p>g77  -o testsecond second_EXT_ETIME.o secondtst.o</p>
<p>&#8230;so if g77 (or whatever is masquerading as g77 on your system) isn&#8217;t working properly, those won&#8217;t get built, and when the makefile tries anything depending on them, it will fail.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

