Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13831 closed defect (fixed)

R install does not install correct paths for libR.dylib in so's

Reported by: jowens (John Owens) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: R Cc: konis@…
Port:

Description (last modified by jmpp@…)

I don't know that much about the install process here ... but to link R with rpy, I have to manually run install_name_tool to change all the instances of libR.dylib to the correct path for libR.dylib.

  503  cd  /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/
  504  ls
  505  otool -L _rpy2061.so 
  506  install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib _rpy2061.so 
  507  sudo _rpy2061.so
  508  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib _rpy2061.so 
  509  otool -L _rpy2061.so 
  510  cd /opt/local/lib/R/library/methods/libs/
  511  otool -L methods.so 
  512  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib methods.so 
  513  cd /opt/local/lib/R/library/grDevices/libs/
  514  otool -L grDevices.so 
  515  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib grDevices.so 
  516  cd /opt/local/lib/R/library/stats/libs/
  517  otool -L stats.so 
  518  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib stats.so 
  519  cd /opt/local/lib/R/modules/
  520  otool -L R_X11.so 
  521  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib R_X11.so 

Attachments (1)

Portfile (8.9 KB) - added by konis@… 16 years ago.
Portfile: upgrade to R 2.6.2 and fixes bug #13831

Download all attachments as: .zip

Change History (7)

comment:1 Changed 16 years ago by jmpp@…

Description: modified (diff)

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: konis@… added

Cc'ing maintainer of R.

Changed 16 years ago by konis@…

Attachment: Portfile added

Portfile: upgrade to R 2.6.2 and fixes bug #13831

comment:3 Changed 16 years ago by konis@…

I added all the correct library install names by brute force. I'll try to learn a little tcl so I can do this more elegantly. Note that install paths in R packages added later (for example: using the install.packages function or R CMD INSTALL) will not be set.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Thanks for the update! I committed your whitespace changes in r34155 and the update to 2.6.2 with the library install name fixes in r34156.

You should probably acquaint yourself with the tcl foreach function to make this portfile much simpler.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.