Robert Sams
2004-Dec-01 12:38 UTC
[R] can't install r package on debian due to linker problem
hi, my attempt to install the package Hmisc v3.0-1 fails with the message: /usr/bin/ld: cannot find -lfrtbegin collect2: ld returned 1 exit status make: *** [Hmisc.so] Error 1 ERROR: compilation failed for package 'Hmisc' i'm at a loss here. any hints will be very much appreciated. i'm running: debian stable R version 2.0.1 gcc 2.95.4-14 g77 2.95.4-14 binutils 2.12.90.0.1-4 robert Robert Sams SANCTUM FI LLP Charles House 18B Charles Street Mayfair London W1J 5DU Tel: +44 (0) 207 667 6360 Dir: +44 (0) 207 667 6363 fax: +44 (0) 207 667 6460 email: robert at sanctumfi.com Authorised and Regulated by the FSA. Sending encrypted mail: See http://pgp.mit.edu (search string 'sanctumfi') for updates. -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org mQGiBD/xA1kRBAC2RUt8WyHDjXDoO1eu2Mli83cuEV37FicaBs/Wj5ry1QIz1drj ubP25QQvu0lYOOnP7iS48bcOVP77uQYqLbsvzQ4fChFLCg9O3D4ourolZEK69ooJ 74r87PPV/LEnURL4T8E7QCDrRmylJ1iCffgJ9JWkAN4qUG+6fFuOyiqxDwCgiMkM oLaYHjl3unc7Anx59xAlm+MD/R1EdXM9uewCj2kS3SdN+akklg6QVy+gTl3+HGzc MC6ZcLsk1uIklkvCfoYDN7oeC3uVGik7QYkE3n02vfAMGjW7AqsQEoblzi3QscoX Kzitd04NcWeDYIXRThCCydIJ64DdpF293ewJf2fRykmBdAbV0oaqL+zgdrRqFxYJ m2d9A/9m3DoHwXBXPyqueX8naY5hmmeG+mihkdI4H4MBmaPJZW9DnZxor6P2Nm/X muDSf7aZ1t9J0t75oEY/SyjoCYhWlMJS+wnOUq3u5XRNRyo9oI1qQaF5zw8ZmIzW x7nfQMlXpXpETGwbNxZuUoucbN1cDrZBymHxlI5AiBCZ/fya3rQzUm9iZXJ0IFNh bXMgKFNhbmN0dW0gRkkgTExQKSA8cm9iZXJ0QHNhbmN0dW1maS5jb20+iF0EExEC AB0FAj/xA1kFCQHhM4AFCwcKAwQDFQMCAxYCAQIXgAAKCRD3WGga9bCIIPV6AJ9t cDQkN8jW8CxzbU5K2O3dxaMlKwCeNOYQsAgW7S1qAlM345QpDXxbjgC5Ag0EP/ED bRAIANoxq2NjQFdrUMSlQEaitR3pFTmOC7n2rICBAbU/hxlVs1PFSyh6Tr00vzFM py6n4uBCOzrz3b5u5YbRaQzs8ipkqnSzoDD6GKfMEEWYQvZ76kkShWt5zDkLQ2X4 V4X+xJ0iuFT+9cK7VuJ102pjsAwltDUGPKsSwWqs55tzBN8BwAxqNMxRtNYbOTAB Dpnm1BsiZ1TLqHIr4a1t2ZEuqhKV0HEP9VugP9XQz9u1f5QZrriNW/foxBwLuXS7 g+945IGXZq/qxHzgQjJQhC3jIaHUrchrQxy6snoQxgAnuO2/g9SLI8BBsvpVZ+Ac mpkhPtT4pGujwsK/oRFDloAb7BsAAwYIAMlQrB2GPn1ZNFIf9zN+euTv2jWx5Hv4 ZEhqeBTqq00KCT3NSrnOHBTX4x6F4L+ofRzl2L5zIi685wWTpLgqQI7hzKvAxerJ xe1qpz5GfGX976uaqxEfzwQZqcZB2iihhjeOUTxalSWdkX73yNtRmLLikTr0U3E0 v0dB1laMqldYub4X+GeH7tAeQGqYfS6Y+BdNDWfIcwADM0ggLIbNsw+IsjdQNOpq 5R4p1E2o5kfvafIFLpMOZACKKdTBkfiAqOZq8ezDpNHwLrRG4RvQ1K80pGGqaikI XFbJIthvimA5w4MjvenuIn367zj+bz5eFE7YeQ0KG7NAdg2DkxD4W9CITAQYEQIA DAUCP/EDbQUJAeEzgAAKCRD3WGga9bCIIL8RAJ4o9zXtkqK5RMKXxJTmZejtDjTC kwCdFevBc9z4ermWaKb9BsDU7OYdgM8=6Y3T -----END PGP PUBLIC KEY BLOCK-----
Prof Brian Ripley
2004-Dec-01 12:55 UTC
[R] can't install r package on debian due to linker problem
On Wed, 1 Dec 2004, Robert Sams wrote:> hi, > > my attempt to install the package Hmisc v3.0-1 fails with the message: > > /usr/bin/ld: cannot find -lfrtbegin > collect2: ld returned 1 exit status > make: *** [Hmisc.so] Error 1 > ERROR: compilation failed for package 'Hmisc' > > i'm at a loss here. any hints will be very much appreciated. > > i'm running: > > debian stable > R version 2.0.1 > gcc 2.95.4-14 > g77 2.95.4-14 > binutils 2.12.90.0.1-4Edit R_HOME/etc/Makeconf and remove -lfrtbegin from FLIBS. It is not needed, and 2.1.0 will work that out. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Jari Oksanen
2004-Dec-01 12:58 UTC
[R] can't install r package on debian due to linker problem
On Wed, 2004-12-01 at 14:38, Robert Sams wrote:> hi, > > my attempt to install the package Hmisc v3.0-1 fails with the message: > > /usr/bin/ld: cannot find -lfrtbegin > collect2: ld returned 1 exit status > make: *** [Hmisc.so] Error 1 > ERROR: compilation failed for package 'Hmisc' >It is funny to see this error message in Debian which is a GNU/Linux system. Typically you see the very same error message in MacOS X which is a GNU/BSD system. There this is caused by missing Fortran compiler. Indeed, at least in Red Hat Linux, libfrbegin.a is owned by Fortran (g77). However, you claim below that you have installed Fortran (g77). I suggest you look for if you some Fortran related packages are missing, or you can try to 'locate' libfrtbegin.a in your system and see if it is in the linker search path.> i'm at a loss here. any hints will be very much appreciated. > > i'm running: > > debian stable > R version 2.0.1 > gcc 2.95.4-14 > g77 2.95.4-14 > binutils 2.12.90.0.1-4 >cheers, jari oksanen -- Jari Oksanen <jarioksa at sun3.oulu.fi>
Robert Sams
2004-Dec-01 13:34 UTC
[R] can't install r package on debian due to linker problem
thank you both. i edited the Makeconf file per brian ripley's instruction and all works well. cheers, robert -----Original Message----- From: Jari Oksanen [mailto:jarioksa at sun3.oulu.fi] Sent: Wednesday, December 01, 2004 12:59 PM To: Robert Sams Cc: R-News Subject: Re: [R] can't install r package on debian due to linker problem On Wed, 2004-12-01 at 14:38, Robert Sams wrote:> hi, > > my attempt to install the package Hmisc v3.0-1 fails with the message: > > /usr/bin/ld: cannot find -lfrtbegin > collect2: ld returned 1 exit status > make: *** [Hmisc.so] Error 1 > ERROR: compilation failed for package 'Hmisc' >It is funny to see this error message in Debian which is a GNU/Linux system. Typically you see the very same error message in MacOS X which is a GNU/BSD system. There this is caused by missing Fortran compiler. Indeed, at least in Red Hat Linux, libfrbegin.a is owned by Fortran (g77). However, you claim below that you have installed Fortran (g77). I suggest you look for if you some Fortran related packages are missing, or you can try to 'locate' libfrtbegin.a in your system and see if it is in the linker search path.> i'm at a loss here. any hints will be very much appreciated. > > i'm running: > > debian stable > R version 2.0.1 > gcc 2.95.4-14 > g77 2.95.4-14 > binutils 2.12.90.0.1-4 >cheers, jari oksanen -- Jari Oksanen <jarioksa at sun3.oulu.fi>