Koozali.org: home of the SME Server

compiler version is too old

Offline FreakWent

  • ****
  • 89
  • +0/-0
compiler version is too old
« on: September 10, 2011, 12:43:05 PM »
Hi.

I can't compile rtorrent.  Asking for help on IRC they all laugh at me because

gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)


Now I need 4.3 or better.  Is there an official way that this might be possible?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: compiler version is too old
« Reply #1 on: September 10, 2011, 04:08:30 PM »
SME server does not include a compiler.

Search for 'rtorrent el4 rpm' and you will find a ready-to-use rpm suitable for SME 7. You don't need to compile it yourself.

Offline FreakWent

  • ****
  • 89
  • +0/-0
Re: compiler version is too old
« Reply #2 on: September 11, 2011, 01:46:03 AM »
I'd rather avoid manually installing rpms, is there a repo I can enable to use yum?

More generally, do you (personally) approve of this approach for any software not included with SME Server?  I've always felt that compiling from source is less likely to break anything important.

Thanks!

PS: The verision I found following your advice is 0.8.0, which is 3.5 years old.

PPS: Is the 8.0 beta 6 stable enough to consider for basic home use, or is it buggy and terrible?


PPPS: I *knew* this would happen!


bash-3.00# rpm -i libtorrent-0.11.9-1.el4.rf.i386.rpm
        package libtorrent-0.11.9-1.el4.rf is already installed
bash-3.00# rpm -e libtorrent-0.11.9-1.el4.rf.i386.rpm
error: package libtorrent-0.11.9-1.el4.rf.i386.rpm is not installed

Dammit.
« Last Edit: September 11, 2011, 02:15:25 AM by FreakWent »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: compiler version is too old
« Reply #3 on: September 11, 2011, 02:02:42 AM »
I'd rather avoid manually installing rpms, is there a repo I can enable to use yum?

download the rpm and do
Code: [Select]
yum localinstall file.rpm
in this way you can solve any dependency automagically (well.. not everytime :) )


Quote
More generally, do you (personally) approve of this approach for any software not included with SME Server?  I've always felt that compiling from source is less likely to break anything important.

IMHO and in my experience you should never install something that doesn't come from a rpm..

Quote
PS: The verision I found following your advice is 0.8.0, which is 3.5 years old.

does it work?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: compiler version is too old
« Reply #4 on: September 11, 2011, 05:10:49 AM »
IMHO and in my experience you should never install something that doesn't come from a rpm..

I agree with Stefano.