<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
<channel>
    <title>Dažādas piezīmes libtorrent 0.16.0.0</title>
    <link>https://tvertne.org/blogi/?itemid=3311</link>
    <description>Uznāca iedvesma komplektā ar jaunāko Deluge (1.3.5) iekurbulēt jaunāko libtorrent versiju (uz tā bāzes strādā Deluge), sevišķi pēc tam kad atklājās, ka ar apt-get pieejamā versija pri..</description>
    <language>lv</language>
    <image>
        <url>http://tvertne.org/logo-org.gif</url>
        <title>libtorrent 0.16.0.0</title>
        <link>https://tvertne.org/blogi/?itemid=3311</link>
    </image>
    <docs>http://backend.userland.com/rss</docs>
	    <item>
<title>Dažādas piezīmes libtorrent 0.16.0.0</title>
<link>https://tvertne.org/blogi/?itemid=3311</link>
<description>Uznāca iedvesma komplektā ar jaunāko <b>Deluge</b> (1.3.5) <span style="font-style: italic;">iekurbulēt</span> jaunāko <b>libtorrent</b> versiju (uz tā bāzes strādā Deluge), sevišķi pēc tam kad atklājās, ka ar <b>apt-get</b> pieejamā versija priekš <b>Debian 6</b> ir samērā paveca. (0.14.x - wtf)<br /><br />Tātad, izmantojot <b>root</b> kontu:<br /><br />1.) Ķeram pašreiz jaunāko versiju ar:<br /><b>wget <a class="linkification-ext" href="http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.0.tar.gz" title="Linkification: http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.0.tar.gz">http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.0.tar.gz</a></b><br />2.) <b>gunzip libtorrent-rasterbar-0.16.0.tar.gz</b><br />3.)<b> tar -vxf libtorrent-rasterbar-0.16.0.tar</b><br />4.) <b>cd libtorrent-rasterbar-0.16.0</b><br />5.) <b>./configure --enable-python-binding</b><br /><br />Secinām, ka nav uzlikts libboost.<br /><br />6.) <b>apt-get install libboost1.42-dev libboost-all-dev</b><br />7.) Laižam configure vēlreiz ar <b>./configure --enable-python-binding</b><br />8.) <span style="text-decoration: line-through;">Neliels</span> Ilgs <span style="font-style: italic;">jeblis</span> ar <span style="font-style: italic;">make</span> kura gaitā secinām, ka libboost 1.42 ir nepietiekams, lai arī configure pieprasa tikai 1.36 vai jaunāku. <br /><br />Tālāk meklējam palīdzību tur, kur tā ir :) <br /><br />Palīdzības rezultātā tiek uzzināts, ka iespējams nokompilēt, ja izmanto libboost no <b>Sid repo</b>, bet ar to negribas <span style="font-style: italic;">čakarēties</span>, jo var sapist sistēmu, tāpēc no labiem cilvēkiem savācam 2 nelielus patch failus, kas izlabo visu pasākumu tā, lai var nokompilēt ar esošo libboost 1.42 (tātad, izmetam ārā esošo instalāciju un atkārtojam soli no 2.-4., <br /><br />9.) Pielietojam patch ar:<br /><br /><b>patch -p0 -i ~/fix.diff</b><br style="font-weight: bold;" /><b>patch -p0 -i ~/fix2.diff</b><br /><br />10.) <b>make</b><br /><br />Make šajā gadījumā aizņem ļoti ilgu laiku, te var aiziet padzert kafiju.<br /><br />11.) <b>make install</b><br />12.) <b>cd bindings/python/</b><br />13.) <b>python setup.py build</b><br />14.) <b>python setup.py install</b><br />15.) <b>ldconfig</b><br /><br />Pārbaudīt vai ir uzlikusies jaunākā versija var ar "deluged --version"<br /><br />un arī ar: "python -c "import libtorrent as lt; print lt.version"<br /><br style="font-weight: bold; color: rgb(30, 144, 255);" /><span style="font-weight: bold; color: rgb(0, 0, 255);"><br />Ejam uz tuvāko <span style="font-style: italic;">traktoru</span> un pārbaudām, ka viss strādā&nbsp; :D</span><br /><br />Papildus info te:<br /><a class="linkification-ext" href="http://www.rasterbar.com/products/libtorrent/python_binding.html" title="Linkification: http://www.rasterbar.com/products/libtorrent/python_binding.html">http://www.rasterbar.com/products/libtorrent/python_binding.html</a><br /><a class="linkification-ext" href="http://code.google.com/p/libtorrent/downloads/list" title="Linkification: http://code.google.com/p/libtorrent/downloads/list">http://code.google.com/p/libtorrent/downloads/list</a><br />http://www.mail-archive.com/libtorrent-devel@rakshasa.no/msg01888.html<br />
<div class="itembody">
</div></description>
<pubDate></pubDate>
</item>
        <item>
<title>Comments by: bubu</title>
<link>https://tvertne.org/blogi/?itemid=3311#4695</link>
<description><a href="mm.5p4mbox@gmail.com">bubu</a><br />Kāpēc builds jādara kā root'u?<br />Tikai make install un setup.py install jādara kā roots.<br /><br />Un vēl - make var izpildīt kā &quot;make -j4&quot;, tad kompilācija izmantos 4 cpu cores, ja tādas tev ir pieejamas.</description>
<pubDate></pubDate>
</item>
        <item>
<title>Comments by: HELDON</title>
<link>https://tvertne.org/blogi/?itemid=3311#4696</link>
<description><a href="http://tvertne.org">HELDON</a><br />ok, korekcija pieņemta :)</description>
<pubDate></pubDate>
</item>
            </channel>
</rss>
        