<?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: Passing environment variables to Ruby from Phusion Passenger</title>
	<atom:link href="http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 16:02:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ImageMagick 和 Rmagick 之灵异事件 - 噏 【Up】</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-12610</link>
		<dc:creator>ImageMagick 和 Rmagick 之灵异事件 - 噏 【Up】</dc:creator>
		<pubDate>Tue, 17 Nov 2009 17:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-12610</guid>
		<description>[...] http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/" rel="nofollow">http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: almost effortless &#187; Weekly Digest, 11-6-09</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-12221</link>
		<dc:creator>almost effortless &#187; Weekly Digest, 11-6-09</dc:creator>
		<pubDate>Fri, 06 Nov 2009 20:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-12221</guid>
		<description>[...] Passing environment variables to Ruby from Phusion Passenger Some environment variables must be set before Ruby is started because the Ruby interpreter itself uses them. The RailsBench GC settings environment variables, which are now supported by Ruby Enterprise Edition, are examples of such environment variables. [...]</description>
		<content:encoded><![CDATA[<p>[...] Passing environment variables to Ruby from Phusion Passenger Some environment variables must be set before Ruby is started because the Ruby interpreter itself uses them. The RailsBench GC settings environment variables, which are now supported by Ruby Enterprise Edition, are examples of such environment variables. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozgun Koyun</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-10320</link>
		<dc:creator>Ozgun Koyun</dc:creator>
		<pubDate>Tue, 15 Sep 2009 01:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-10320</guid>
		<description>Dear &quot;Sands Fish&quot;,

You saved the day! Thanks a lot! I&#039;ve been trying to install &quot;taf2-curb&quot; on a dreamhost machine, finally I managed to install it. I set the &quot;LD_RUN_PATH&quot; and &quot;LD_LIBRARY_PATH&quot; with export, and also added to .bash_profile and .bashrc. Then, complied the taf2-curb, and copied &quot;curb_core.so&quot; from ext directory to the &quot;lib&quot; folder of taf2-curb gem.</description>
		<content:encoded><![CDATA[<p>Dear &#8220;Sands Fish&#8221;,</p>
<p>You saved the day! Thanks a lot! I&#8217;ve been trying to install &#8220;taf2-curb&#8221; on a dreamhost machine, finally I managed to install it. I set the &#8220;LD_RUN_PATH&#8221; and &#8220;LD_LIBRARY_PATH&#8221; with export, and also added to .bash_profile and .bashrc. Then, complied the taf2-curb, and copied &#8220;curb_core.so&#8221; from ext directory to the &#8220;lib&#8221; folder of taf2-curb gem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sands Fish</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-9534</link>
		<dc:creator>Sands Fish</dc:creator>
		<pubDate>Fri, 28 Aug 2009 07:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-9534</guid>
		<description>FYI for all of you Dreamhost users out there, for some cases, some compile-time magic can remove the necessity of setting LD_LIBRARY_PATH during run-time.

In my particular case, it was the taf2-curb gem (cURL bindings for ruby) that refused to work.  It would compile fine if I passed it the location of my custom install of the curl libs (i.e. &quot;gem install taf2-curb -- --with-curl-dir=/my/path/to/custom/libcurl&quot;) but when I went to use it, it couldn&#039;t find the curl libraries.  

I spent hours trying to set LD_LIBRARY_PATH via SetEnv directives, environment.rb entries, etc. etc. but what fixed it was this:

http://discussion.dreamhost.com/showthreaded.pl?Cat=0&amp;Board=forum_programming&amp;Number=88041&amp;page=0&amp;view=&amp;sb=&amp;part=&amp;vc=1&amp;o=

A simple setting of LD_RUN_PATH before doing the gem compile/install mentioned above (&quot;export LD_RUN_PATH=/my/path/to/custom/libcurl&quot;) fixed the location of the libraries for the gem and it &quot;Just Works&quot; (after hours of misery).  

My guess is that it would work for anything else (i.e. the ruby-oci8 driver, etc.) if you can build it yourself.</description>
		<content:encoded><![CDATA[<p>FYI for all of you Dreamhost users out there, for some cases, some compile-time magic can remove the necessity of setting LD_LIBRARY_PATH during run-time.</p>
<p>In my particular case, it was the taf2-curb gem (cURL bindings for ruby) that refused to work.  It would compile fine if I passed it the location of my custom install of the curl libs (i.e. &#8220;gem install taf2-curb &#8212; &#8211;with-curl-dir=/my/path/to/custom/libcurl&#8221;) but when I went to use it, it couldn&#8217;t find the curl libraries.  </p>
<p>I spent hours trying to set LD_LIBRARY_PATH via SetEnv directives, environment.rb entries, etc. etc. but what fixed it was this:</p>
<p><a href="http://discussion.dreamhost.com/showthreaded.pl?Cat=0&amp;Board=forum_programming&amp;Number=88041&amp;page=0&amp;view=&amp;sb=&amp;part=&amp;vc=1&amp;o=" rel="nofollow">http://discussion.dreamhost.com/showthreaded.pl?Cat=0&amp;Board=forum_programming&amp;Number=88041&amp;page=0&amp;view=&amp;sb=&amp;part=&amp;vc=1&amp;o=</a></p>
<p>A simple setting of LD_RUN_PATH before doing the gem compile/install mentioned above (&#8220;export LD_RUN_PATH=/my/path/to/custom/libcurl&#8221;) fixed the location of the libraries for the gem and it &#8220;Just Works&#8221; (after hours of misery).  </p>
<p>My guess is that it would work for anything else (i.e. the ruby-oci8 driver, etc.) if you can build it yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-6970</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Mon, 08 Jun 2009 21:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-6970</guid>
		<description>If you are redhat/centos/fedora user, you can add the lines to /etc/sysconfig/httpd.  I&#039;m sure other OSes have similar functionality.  You could also add it directly to init scripts, but they have the potential to be overwritten with package updates.</description>
		<content:encoded><![CDATA[<p>If you are redhat/centos/fedora user, you can add the lines to /etc/sysconfig/httpd.  I&#8217;m sure other OSes have similar functionality.  You could also add it directly to init scripts, but they have the potential to be overwritten with package updates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#8230; So We Built One :: ImageScience, FreeImage, and Dreamhost PS</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-5224</link>
		<dc:creator>&#8230; So We Built One :: ImageScience, FreeImage, and Dreamhost PS</dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-5224</guid>
		<description>[...] and seeing that LD_LIBRARY_PATH, also add it to your config/environment.rb file (further discussion here): [...]</description>
		<content:encoded><![CDATA[<p>[...] and seeing that LD_LIBRARY_PATH, also add it to your config/environment.rb file (further discussion here): [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: passenger and rmagick on shared hosting &#171; dimas priyanto</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-4698</link>
		<dc:creator>passenger and rmagick on shared hosting &#171; dimas priyanto</dc:creator>
		<pubDate>Wed, 21 Jan 2009 12:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-4698</guid>
		<description>[...] Something that have to be noticed is these step must be runned by administrator or root. What the result? these steps doesn&#8217;t affect to my rails application i still getting exception loaderror. Fyi. the article can be found here: http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Something that have to be noticed is these step must be runned by administrator or root. What the result? these steps doesn&#8217;t affect to my rails application i still getting exception loaderror. Fyi. the article can be found here: <a href="http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/" rel="nofollow">http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-4105</link>
		<dc:creator>Raimonds</dc:creator>
		<pubDate>Wed, 17 Dec 2008 21:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-4105</guid>
		<description>I was using the same solution as recommended here. But now I am trying a little bit cleaner approach.

If you have root access to server then in Linux case you can modify envvars file (see apachectl source to find file location on your system) to include environment variables that should be set up before Apache is started.

And in Mac OS X you can modify file /System/Library/LaunchDaemons/org.apache.httpd.plist to include EnvironmentVariables entry with dictionary of additional environment variables.</description>
		<content:encoded><![CDATA[<p>I was using the same solution as recommended here. But now I am trying a little bit cleaner approach.</p>
<p>If you have root access to server then in Linux case you can modify envvars file (see apachectl source to find file location on your system) to include environment variables that should be set up before Apache is started.</p>
<p>And in Mac OS X you can modify file /System/Library/LaunchDaemons/org.apache.httpd.plist to include EnvironmentVariables entry with dictionary of additional environment variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dallas</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-4104</link>
		<dc:creator>Dallas</dc:creator>
		<pubDate>Wed, 17 Dec 2008 20:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-4104</guid>
		<description>@Per : DreamHost is in the process of upgrading to Ruby 1.8.7.  If you contact our support team we can roll that out on your server.

Also, we will probably be adding a way for you to control the PassengerRuby setting on our DreamHost PS servers soon.  Also contact our support team if that&#039;s something you are interested in.</description>
		<content:encoded><![CDATA[<p>@Per : DreamHost is in the process of upgrading to Ruby 1.8.7.  If you contact our support team we can roll that out on your server.</p>
<p>Also, we will probably be adding a way for you to control the PassengerRuby setting on our DreamHost PS servers soon.  Also contact our support team if that&#8217;s something you are interested in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hongli</title>
		<link>http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/comment-page-1/#comment-4087</link>
		<dc:creator>hongli</dc:creator>
		<pubDate>Wed, 17 Dec 2008 13:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.phusion.nl/?p=61#comment-4087</guid>
		<description>@Andy: There are many things on our todo list which have higher priority than fixing the perceived messiness of setting environment variables. We&#039;ll get there eventually but not right now. If you wish that this particular issue is addressed more quickly, then we&#039;d be more than happy to accept a patch or to discuss a sponsorship campaign with you.</description>
		<content:encoded><![CDATA[<p>@Andy: There are many things on our todo list which have higher priority than fixing the perceived messiness of setting environment variables. We&#8217;ll get there eventually but not right now. If you wish that this particular issue is addressed more quickly, then we&#8217;d be more than happy to accept a patch or to discuss a sponsorship campaign with you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
