<?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>x83.net &#187; gcc</title>
	<atom:link href="http://www.x83.net/tag/gcc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +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>Install Dante socks proxy</title>
		<link>http://www.x83.net/install-dante-socks-proxy/</link>
		<comments>http://www.x83.net/install-dante-socks-proxy/#comments</comments>
		<pubDate>Mon, 24 May 2010 12:51:07 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dante]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socks]]></category>

		<guid isPermaLink="false">http://www.x83.net/install-dante-socks-proxy/</guid>
		<description><![CDATA[Dante socks install : Download Dante from : ftp://ftp.inet.no/pub/socks/dante-1.2.0.tar.gz tar zxvf dante-1.2.0.tar.gz cd dante-1.2.0 yum install gcc make ./configure make -j4 make install ifconfig -a &#124;  grep inet &#124; awk &#8216;{print $2}&#8217; &#124; awk -F &#8216;:&#8217; &#8216;{print $2}&#8217; &#124; grep -v 127.0.0.1 &#62;  /root/ips for i in `cat ips` ;do echo &#8220;internal: $i port = [...]]]></description>
			<content:encoded><![CDATA[<p>Dante socks install :</p>
<p>Download Dante from : ftp://ftp.inet.no/pub/socks/dante-1.2.0.tar.gz</p>
<p>tar zxvf dante-1.2.0.tar.gz<br />
cd dante-1.2.0<br />
yum install gcc make<br />
./configure<br />
make -j4<br />
make install</p>
<blockquote><p>ifconfig -a |  grep inet | awk &#8216;{print $2}&#8217; | awk -F &#8216;:&#8217; &#8216;{print $2}&#8217; | grep -v 127.0.0.1 &gt;  /root/ips</p></blockquote>
<blockquote><p>for i in `cat ips` ;do echo &#8220;internal: $i port = 6060&#8243; &gt;&gt; /root/sockd.conf ;done</p></blockquote>
<p>Example of sockd.conf :</p>
<blockquote><p>logoutput: stderr<br />
method: username none<br />
external: externalIPtouse<br />
client pass {<br />
from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0<br />
}<br />
pass {<br />
from: 0.0.0.0/0 to: 0.0.0.0/0<br />
method: username<br />
protocol: tcp udp<br />
}
</p></blockquote>
<p>Launch using :</p>
<p>sockd -f /root/sockd.conf -d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/install-dante-socks-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPM relocatable packages</title>
		<link>http://www.x83.net/rpm-relocatable-packages/</link>
		<comments>http://www.x83.net/rpm-relocatable-packages/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:28:33 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[relocatable]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=257</guid>
		<description><![CDATA[RPM has an option (&#8211;prefix) that allows users to install rpms in other directories than the default ones. Packages that allow to be installed in other directories are called : relocatable [root@localhost gcc]# rpm -qpi libxslt-1.1.24-4.fc11.i586.rpm &#124; grep Relocations Name : libxslt Relocations: /usr [root@localhost gcc]# rpm -qi libxslt &#124; grep Relo Name : libxslt [...]]]></description>
			<content:encoded><![CDATA[<p>RPM has an option (&#8211;prefix) that allows users to install rpms in other directories than the default ones.<br />
Packages that allow to be installed in other directories are called : <em>relocatable</em></p>
<blockquote><p>[root@localhost gcc]# rpm -qpi libxslt-1.1.24-4.fc11.i586.rpm  | grep Relocations<br />
Name        : libxslt                      Relocations: /usr<br />
[root@localhost gcc]# rpm -qi libxslt  | grep Relo<br />
Name        : libxslt                      Relocations: /usr
</p></blockquote>
<p>So basically you can install this package in other directory.</p>
<blockquote><p>[root@localhost gcc]# rpm -ihv libxslt-1.1.24-4.fc11.i586.rpm &#8211;prefix $PWD &#8211;force<br />
Preparing&#8230;                ########################################### [100%]<br />
   1:libxslt                ########################################### [100%]<br />
[root@localhost gcc]# ls<br />
bin  lib  libxslt-1.1.24-4.fc11.i586.rpm  share
</p></blockquote>
<p>For example gcc is not relocatable and installing it in an different directory is not allowd:</p>
<blockquote><p>[root@localhost gcc]# rpm -qi gcc | grep Relo<br />
Name        : gcc                          Relocations: (not relocatable)<br />
[root@localhost gcc]# rpm -Uhv gcc-4.1.2-33.i386.rpm &#8211;prefix=$PWD<br />
error: package gcc is not relocatable
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/rpm-relocatable-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple gcc versions</title>
		<link>http://www.x83.net/multiple-gcc-versions/</link>
		<comments>http://www.x83.net/multiple-gcc-versions/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:12:54 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[rpm2cpio]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=253</guid>
		<description><![CDATA[Lets say you have this package from FC11: [root@localhost ~]# rpm -q gcc gcc-4.4.0-4.i586 But you have an source code that needs gcc-4.3 to compile or something lower. So download lets say this: gcc-4.3.2-7.i386.rpm then: mkdir newgcc &#038;&#038; cd newgcc download http://pathtogcc/gcc-4.3.2-7.i386.rpm rpm2cpio gcc-4.3.2-7.i386.rpm &#124; cpio -idv Now you should have in newgcc/usr/bin/gcc. Or download [...]]]></description>
			<content:encoded><![CDATA[<p>Lets say you have this package from FC11:</p>
<blockquote><p>
[root@localhost ~]# rpm -q gcc<br />
gcc-4.4.0-4.i586</p></blockquote>
<p>But you have an source code that needs gcc-4.3 to compile or something lower.</p>
<p>So download lets say this: gcc-4.3.2-7.i386.rpm then:</p>
<blockquote><p>mkdir newgcc &#038;&#038; cd newgcc<br />
download http://pathtogcc/gcc-4.3.2-7.i386.rpm<br />
rpm2cpio gcc-4.3.2-7.i386.rpm | cpio -idv
</p></blockquote>
<p>Now you should have in <em>newgcc/usr/bin/gcc</em>.</p>
<p>Or download the gcc package you need from ftp://ftp.gnu.org and compile it with &#8211;prefix=$HOME/newgcc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/multiple-gcc-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

