SHARE
TWEET

Fix: ImportError: libR.so: cannot open shared object file..

a guest Jan 22nd, 2011 312 Never
  1. # Contributor: David Scholl <djscholl@gmail.com>
  2. # Contributor: David Pretty <david.pretty@gmail.com>
  3. pkgname=python2-rpy2
  4. pkgver=2.1.9
  5. pkgrel=1
  6. pkgdesc="A very simple, yet robust, Python interface to the R Programming Language."
  7. arch=('i686' 'x86_64')
  8. url="http://rpy.sourceforge.net/"
  9. license=('MPL' 'GPL' 'LGPL')
  10. depends=('python2-numpy' 'r')
  11. source=("http://downloads.sourceforge.net/sourceforge/rpy/rpy2-$pkgver.tar.gz")
  12. md5sums=('afe629914e7263900e5d15d419f69865')
  13. build() {
  14.   cd $startdir/src/rpy2-$pkgver
  15.   sed -i "s:Rlapack:lapack:" setup.py
  16.   sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
  17.   python2 setup.py install --prefix=/usr --root=$startdir/pkg || return 1
  18.   mkdir -p $pkgdir/etc/ld.so.conf.d
  19.   echo /usr/lib/R/lib > $pkgdir/etc/ld.so.conf.d/rpy_$CARCH.conf
  20. }
RAW Paste Data
Top