CentOS 5 install won't make with shared libs enabled
On Wed, Mar 2, 2011 at 9:46 AM, Sean O'Keeffe <so2346 at columbia.edu> wrote:
Hi, I've been trying to get a shared library version of the R package(version 2.12.1) installed on a CentOS 5 system. (It installs fine without but other packages demand shared libs - namely Rapache). I've tried this with yum but don't know of any flags to set to tell it to installl with shared libs enabled. I then tried a local R install as non-root with source packages: after downloading the latest tarball and unzipping: ./configure --prefix=/opt --enable-R-shlib make
Wow. I'm stunned that Rapache shows up as a requirement. I think the other guys are right that you should just use R from Epel, but if you want to be a do-it-yourselfer, I would suggest he following. DO NOT build R from source that way. DO get the SRPM file that is used to build RPMS. Then set your build directory in a file in your home directory (.rpmmacros as I recall), then install the SRPM file, then go read the SPEC file in the rpm tree. The SPEC file shows how the thing is built, and you can rebuild in the command line like $ rpmbuild -ba whatever.spec This will give you an RPM that is exactly matching your system, same as "configure .. make" but more easily managed. If you have trouble getting started, I think I can double-check the instructions. I know I've written them out before. Here's another point. The "default" configure statement for R's RPM is much more elaborate than you think. So trying it from scratch is probably a big mistake. If you look at the SPEC file, you will see what I mean. If you do succeed in building RPMS, it will be then easy for you to take the RPM for Rapache and rebuild that for your system. Or it will be VERY OBVIOUS in the R spec file what you need to do to get rid of the Rapache package requirement. It sounds to me like a very aggressive piece of packaging, there, since most R installations will never need it. Until you posted, I did not know that Rapache had been packaged in Fedora, while running a RedHat system, I built my own. It is a very simple build, actually, it is just an apache module and a apache config file. Next time I have spare time, i will see how their packaging differs from mine. Or you can check and tell me. The installable is http://pj.free.faculty.org/Centos/5/i386/kups/packages/rapache-1.1.13-1.i386.rpm Here's the SRPM, you could rebuild http://pj.free.faculty.org/Centos/5/i386/kups/SRPMS/rapache-1.1.13-1.src.rpm Good luck. I hope this will be an exciting chance for you to join the smart, clever group of RPM building linux users. Advice I got years ago: Never install anything with "make install" because it puts unaccountable damage all over your file system, and if you do that, set the prefix in the configure to be a unique, separate thing. Never manually install into /usr. And if something is worth building by hand, it is worth building in a package so you can remove it!
Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas