<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>42 &#187; linux</title>
	<atom:link href="http://www.42.mach7x.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:38:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Could not open library &#8216;libgtkmm-2.4.so&#8217;: libgtkmm-2.4.so: cannot open shared object file: No such file or directory.</title>
		<link>http://www.42.mach7x.com/2012/01/09/could-not-open-library-libgtkmm-2-4-so-libgtkmm-2-4-so-cannot-open-shared-object-file-no-such-file-or-directory/</link>
		<comments>http://www.42.mach7x.com/2012/01/09/could-not-open-library-libgtkmm-2-4-so-libgtkmm-2-4-so-cannot-open-shared-object-file-no-such-file-or-directory/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 10:28:23 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Guard]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=461</guid>
		<description><![CDATA[Problem If you have setup guard with your Rails project and you are trying to run it in an (K)Ubuntu installation you get the following message: Could not open library 'libgtkmm-2.4.so': libgtkmm-2.4.so: cannot open shared object file: No such file or directory. Solution Install the missing library with the following: sudo apt-get install libgtkmm-2.4]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>If you have setup guard with your Rails project and you are trying to run it in an (K)Ubuntu installation you get the following message:</p>
<pre class="brush:shell">Could not open library 'libgtkmm-2.4.so': libgtkmm-2.4.so: cannot open shared object file: No such file or directory.</pre>
<p><strong>Solution</strong></p>
<p>Install the missing library with the following:</p>
<pre class="brush:shell">sudo apt-get install libgtkmm-2.4</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2012/01/09/could-not-open-library-libgtkmm-2-4-so-libgtkmm-2-4-so-cannot-open-shared-object-file-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageMagick, RMagick, Kubuntu</title>
		<link>http://www.42.mach7x.com/2011/12/22/imagemagick-rmagick-kubuntu/</link>
		<comments>http://www.42.mach7x.com/2011/12/22/imagemagick-rmagick-kubuntu/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 14:35:58 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[Rmagick]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=458</guid>
		<description><![CDATA[Problem You want to use the rmagick gem in your rails application after a new (K)ubuntu system installation, but the bundler command gives you errors. &#160; Solution Install the following before running budler again: sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>You want to use the rmagick gem in your rails application after a new (K)ubuntu system installation, but the bundler command gives you errors.</p>
<p>&nbsp;</p>
<p><strong>Solution</strong></p>
<p>Install the following before running budler again:</p>
<pre class="brush:shell">sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/12/22/imagemagick-rmagick-kubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>multiple user installation of rvm in Debian</title>
		<link>http://www.42.mach7x.com/2011/09/07/multiple-user-installation-of-rvm-in-debian/</link>
		<comments>http://www.42.mach7x.com/2011/09/07/multiple-user-installation-of-rvm-in-debian/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 15:20:11 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rvm debian multiple_installation]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=397</guid>
		<description><![CDATA[Problem You would like to install rvm as a multiple user installation in Debian. Solution You would need to do the following: as root bash <]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You would like to install rvm as a multiple user installation in Debian.</p>
<p><strong>Solution</strong><br />
You would need to do the following:</p>
<p><strong>as root</strong></p>
<ul>
<li>bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</li>
</ul>
<p><strong>for each individual user you want to use rvm</strong></p>
<ul>
<li>in the user&#8217;s .bashrc or .bashrc_profile add the following at the bottom:<br />
<code>[[ -s "/usr/local/rvm/scripts/rvm" ]] &#038;&#038; source "/usr/local/rvm/scripts/rvm"  # This loads RVM into a shell session.</code></li>
<li>reload the .bashrc or .bashrc_profile by:<br />
<code>source .bashrc|.bashrc_profile</code></li>
</ul>
<p>and you should be able to do rvm -v.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/09/07/multiple-user-installation-of-rvm-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error while loading shared libraries &#8211; Mandriva</title>
		<link>http://www.42.mach7x.com/2011/07/13/error-while-loading-shared-libraries-mandriva/</link>
		<comments>http://www.42.mach7x.com/2011/07/13/error-while-loading-shared-libraries-mandriva/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 08:19:18 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[missing libraries]]></category>
		<category><![CDATA[urpmf]]></category>
		<category><![CDATA[urpmi]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=365</guid>
		<description><![CDATA[Problem After installing a package and trying to run it in Mandriva 2010 64, you get errors about missing libraries, like: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory Solution Use the urpmf command to find the packages that contain the missing libraries like : urpmf libasound.so.2 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After installing a package and trying to run it in Mandriva 2010 64, you get errors about missing libraries, like:</p>
<p><code>error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory</code></p>
<p><strong>Solution</strong><br />
Use the urpmf command to find the packages that contain the missing libraries like :</p>
<p><code>urpmf libasound.so.2</code></p>
<p>and then when you get something like the following:</p>
<p><code>lib64alsa2:/usr/lib64/libasound.so.2<br />
lib64alsa2:/usr/lib64/libasound.so.2.0.0<br />
lib64alsa2:/usr/lib64/libasound.so.2<br />
lib64alsa2:/usr/lib64/libasound.so.2.0.0<br />
libalsa2:/usr/lib/libasound.so.2<br />
libalsa2:/usr/lib/libasound.so.2.0.0<br />
libalsa2:/usr/lib/libasound.so.2<br />
libalsa2:/usr/lib/libasound.so.2.0.0</code></p>
<p>install the missing packages with:</p>
<p><code>sudo urpmi lib64alsa2</code><br />
or/and<br />
<code>sudo urpmi libalsa2</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/07/13/error-while-loading-shared-libraries-mandriva/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSx &#8211; VMware &#8211; Mandriva resizing partition</title>
		<link>http://www.42.mach7x.com/2011/07/08/osx-vmware-mandriva-resizing-partition/</link>
		<comments>http://www.42.mach7x.com/2011/07/08/osx-vmware-mandriva-resizing-partition/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 15:20:41 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=359</guid>
		<description><![CDATA[Problem When you use WMware to run Mandriva or any other distribution on Mac OSx, if you resize the hard disk partition in VMware your Mandriva system won&#8217;t automatically resize the partition to use the newly available space. Solution To be able to use the available space the quickest solution is: restart your VMware session [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
When you use WMware to run Mandriva or any other distribution on Mac OSx, if you resize the hard disk partition in VMware your Mandriva system won&#8217;t automatically resize the partition to use the newly available space.</p>
<p><strong>Solution</strong><br />
To be able to use the available space the quickest solution is:</p>
<ul>
<li>restart your VMware session but run in safe mode</li>
<li>start up drakdisk</li>
<li>select the partition you want to resize. WARNING (Make sure you back up important data &#8211; even though in my case everything went smoothly)</li>
<li>umount the select partition and resize using all the avaliable free space</li>
<li>after a few minutes you should be able to restart your VMware and login to your virtual machine as normal, and the partition should be resized</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/07/08/osx-vmware-mandriva-resizing-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem using capistrano on deployment server after server ip address change</title>
		<link>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/</link>
		<comments>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 12:45:30 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[change ip address]]></category>
		<category><![CDATA[deploying]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=356</guid>
		<description><![CDATA[Problem After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error: ** [192.168.0.50 :: err] Host key verification failed. ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly Solution You would need to login to your staging server (as your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error:</p>
<p><code>** [192.168.0.50 :: err] Host key verification failed.<br />
 ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly</code></p>
<p><strong>Solution</strong><br />
You would need to login to your staging server (as your deployment user) and do an initial checkout for one time for the ssh keys to work.<br />
So you could do something like the following:</p>
<p><code>$ ssh user_name@staging_server<br />
$sh -c 'git clone -q git_user@192.168.0.50:repo_name /some/tmp/dir/temp_repo_name</code></p>
<p>Make sure that you reply &#8216;y&#8217; to the question about the authenticity of the host as in:<br />
<code>The authenticity of host '192.168.0.50 (192.168.0.50)' can't be established.<br />
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xxb.<br />
Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added '192.168.0.50' (RSA) to the list of known hosts.</code></p>
<p>Net delete the newly created git project from your tmp directory, and then you should be able to use cap deploy as normal again from your development pc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You tried to assign a String or a Pathname to an uploader, for security reasons, this is not allowed.</title>
		<link>http://www.42.mach7x.com/2011/06/27/you-tried-to-assign-a-string-or-a-pathname-to-an-uploader-for-security-reasons-this-is-not-allowed/</link>
		<comments>http://www.42.mach7x.com/2011/06/27/you-tried-to-assign-a-string-or-a-pathname-to-an-uploader-for-security-reasons-this-is-not-allowed/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 09:29:30 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[factory_girl]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Carrierwave]]></category>
		<category><![CDATA[Cucumber]]></category>
		<category><![CDATA[factory girl]]></category>
		<category><![CDATA[file uploads]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=353</guid>
		<description><![CDATA[Problem You would like to use Carrierwave for file uploads, but you get the following error if you are trying to use factories for running your cucumber scripts: You tried to assign a String or a Pathname to an uploader, for security reasons, this is not allowed. That happens if you try to assign inside [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You would like to use Carrierwave for file uploads, but you get the following error if you are trying to use factories for running your cucumber scripts:</p>
<p><code>You tried to assign a String or a Pathname to an uploader, for security reasons, this is not allowed.</code></p>
<p>That happens if you try to assign inside your factory template, to your file field the path like f.file &#8220;path_to_file&#8221;</p>
<p><strong>Solution</strong></p>
<p>You would need to slightly modify your factory template to use the file path as follows:</p>
<p><code>f.file File.open(File.join(Rails.root,"path_to_file"))</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/27/you-tried-to-assign-a-string-or-a-pathname-to-an-uploader-for-security-reasons-this-is-not-allowed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageMagick, RMagick, Debian installation</title>
		<link>http://www.42.mach7x.com/2011/06/17/imagemagick-rmagick-debian-installation/</link>
		<comments>http://www.42.mach7x.com/2011/06/17/imagemagick-rmagick-debian-installation/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 08:48:54 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[Rmagick]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=349</guid>
		<description><![CDATA[Problem You want to use the rmagick gem in your ruby on rails project, but you need to install the imagemagick first. Solution If Imagemagick is not already installed, use the following to install it: $ sudo apt-get install imagemagick]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to use the rmagick gem in your ruby on rails project, but you need to install the imagemagick first.</p>
<p><strong>Solution</strong><br />
If Imagemagick is not already installed, use the following to install it:<br />
<code>$ sudo apt-get install imagemagick</code/</p>
<p>Then install the development librarires for both the imagemagick and the MagickWand as in:<br />
<code>$ sudo apt get install libmagick-dev libmagickwand-dev</code></p>
<p>You should then be able to install and use the rmagick gem</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/17/imagemagick-rmagick-debian-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>no such file to load &#8212; readline (LoadError) in Rails 3.0.7 &#8211; Mandriva 2011 64</title>
		<link>http://www.42.mach7x.com/2011/06/01/no-such-file-to-load-readline-loaderror-in-rails-3-0-7-mandriva-2011-64/</link>
		<comments>http://www.42.mach7x.com/2011/06/01/no-such-file-to-load-readline-loaderror-in-rails-3-0-7-mandriva-2011-64/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 13:08:52 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[Mandriva 64]]></category>
		<category><![CDATA[Rails 3.0.7]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[rvm. ruby 1.9.2]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=336</guid>
		<description><![CDATA[Problem When you try to run the console rails c in a new Rails 3.0.7 application, in Mandriva 2011 64bit, and when you use rvm, you get the following error: no such file to load -- readline (LoadError) Solution Similar to an earlier post here, the solution is as follows with the new requirements described [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>When you try to run the console <code>rails c</code> in a new Rails 3.0.7 application, in Mandriva 2011 64bit, and when you use rvm, you get the following error:</p>
<p><code>no such file to load -- readline (LoadError)</code></p>
<p><strong>Solution</strong></p>
<p>Similar to an earlier post <a href="http://www.42.mach7x.com/2011/01/14/no-such-file-to-load-readline-loaderror-rails-3-0-3-console-rvm/">here</a>, the solution is as follows with the new requirements described</p>
<p>It&#8217;s quite like likely that the readline libraries are missing from your installation. To find out which ones go to the directory that the error is indicating (ie):</p>
<p><code>cd ~/.rvm/src/ruby-1.9..2-head</code></p>
<p>and then to the following:</p>
<p><code>cd ext/readline</code></p>
<p>then run the following:</p>
<p><code>ruby extconf.rb</code></p>
<p>If you get something like:<br />
<code>checking for readline/readline.h... no<br />
checking for editline/readline.h... no</code></p>
<p>then you are probably missing the neccessary header files for readline.<br />
so install them in your system (ie in Mandriva):</p>
<p><code>sudo urpmi lib64readline-dev,</code></p>
<p>When the package is installed successfully run the following again:</p>
<p><code>ruby extconf.rb<br />
make<br />
sudo make install</code></p>
<p>You should now be able to go back to your project and run <code>rails c</code> with no errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/01/no-such-file-to-load-readline-loaderror-in-rails-3-0-7-mandriva-2011-64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ldapsearch &#8211; OpenLDAP &#8211; Mandriva</title>
		<link>http://www.42.mach7x.com/2011/02/09/ldapsearch-openldap-mandriva/</link>
		<comments>http://www.42.mach7x.com/2011/02/09/ldapsearch-openldap-mandriva/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 13:01:46 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[ldapsearch]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=302</guid>
		<description><![CDATA[Problem You need to install OpenLDAP for testing the authentication against LDAP, but the command line utility ldapsearch is not installed in your system. Solution You would need to install Mandriva&#8217;s openldap-clients package that includes the ldapsearch: sudo urpmi openldap-clients]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You need to install OpenLDAP for testing the authentication against LDAP, but the command line utility ldapsearch is not installed in your system.</p>
<p><strong>Solution</strong><br />
You would need to install Mandriva&#8217;s openldap-clients package that includes the ldapsearch:</p>
<p><code>sudo urpmi openldap-clients</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/02/09/ldapsearch-openldap-mandriva/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

