# RSRuby?

**URL:** <https://www.ruby-forum.com/t/rsruby/111508>\
**Category:** Ruby\
**Created:** [August 8, 2007, 2:48am UTC](https://www.ruby-forum.com/t/rsruby/111508 "2007-08-08T02:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@michaels](https://www.ruby-forum.com/u/michaels)\
**Post date:** [August 8, 2007, 2:48am UTC](https://www.ruby-forum.com/t/rsruby/111508/1 "2007-08-08T02:48:32Z")

</div>

Hello,  
I was hoping someone here can help me with an install of Rsruby. I  
have it installed on one box but have been having trouble on my  
other. My R libraries are installed in /usr/local/lib64/R/

the mkmf file is as follows. I think it is a linking issue that I  
thought would have been solved by export R\_HOME=/usr/local/lib64/R/  
lib . Is there a way I should link the entire directory?

Thank you for your time,  
Michael

“gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86\_64-linux -I. -I/usr/  
share/  
R/include/ -I/usr  
/local/lib64/R/lib/include -Wall -g -fno-strict-aliasing -O2 -fPIC  
conftest.c -L”/usr  
/local/lib64/R/lib/lib" -L"/usr/lib" -rdynamic -Wl,-export-  
dynamic -lruby1.8-static  
-lR -lpthread -ldl -lcrypt -lm -lc"  
/usr/bin/ld: warning: libRblas.so, needed by /usr/lib/libR.so, not  
found (try using -rpath or -rpath-link)  
/usr/lib/libR.so: undefined reference to `dswap_' /usr/lib/libR.so: undefined reference to`dgemm\_’  
/usr/lib/libR.so: undefined reference to `daxpy_' /usr/lib/libR.so: undefined reference to`drotg\_’  
/usr/lib/libR.so: undefined reference to `dnrm2_' /usr/lib/libR.so: undefined reference to`dcopy\_’  
/usr/lib/libR.so: undefined reference to `zgemm_' /usr/lib/libR.so: undefined reference to`dscal\_’  
/usr/lib/libR.so: undefined reference to `ddot_' /usr/lib/libR.so: undefined reference to`dsyrk\_’  
/usr/lib/libR.so: undefined reference to `dasum_' /usr/lib/libR.so: undefined reference to`dtrsm\_’  
/usr/lib/libR.so: undefined reference to `drot\_’  
collect2: ld returned 1 exit status

---

<div class="post-metadata">

**Author:** ![michaels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@michaels](https://www.ruby-forum.com/u/michaels)\
**Post date:** [August 8, 2007, 4:10am UTC](https://www.ruby-forum.com/t/rsruby/111508/2 "2007-08-08T04:10:36Z")

</div>

On 8 Aug 2007, at 09:47, Michaels wrote:

> Michael  
> found (try using -rpath or -rpath-link)  
> /usr/lib/libR.so: undefined reference to `dasum_' /usr/lib/libR.so: undefined reference to`dtrsm\_’  
> /usr/lib/libR.so: undefined reference to `drot\_’  
> collect2: ld returned 1 exit status

Hi,

What did you use to install R? From source or packages?

I assume you have libRblas.so in your /usr/local/lib64/R/lib  
directory, so did you put /usr/local/lib64/R/lib into LD\_LIBRARY\_PATH  
or ld.so.conf?

Alex G.

Bioinformatics Center  
Kyoto University

---

<div class="post-metadata">

**Author:** ![michaels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@michaels](https://www.ruby-forum.com/u/michaels)\
**Post date:** [August 8, 2007, 5:20am UTC](https://www.ruby-forum.com/t/rsruby/111508/3 "2007-08-08T05:20:40Z")

</div>

I installed R from source. You are right on that file. I ran this  
export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/local/lib64/R

I also added /usr/local/lib64/R/lib  
to ld.so.conf and ran ldconfig.

Thank you for your help.  
Michael

---

<div class="post-metadata">

**Author:** ![michaels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@michaels](https://www.ruby-forum.com/u/michaels)\
**Post date:** [August 8, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/rsruby/111508/4 "2007-08-08T12:19:24Z")

</div>

Actually, I think there may be an issue with the environment  
variable. after I use export, nothing is added to /etc/environment.  
Could this be it?

Thank you again for the help,  
Michael
