Opened 13 years ago

Closed 13 years ago

Last modified 12 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 Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: R Cc: konis@…

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 
  506  install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 
  507  sudo
  508  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 
  509  otool -L 
  510  cd /opt/local/lib/R/library/methods/libs/
  511  otool -L 
  512  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 
  513  cd /opt/local/lib/R/library/grDevices/libs/
  514  otool -L 
  515  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 
  516  cd /opt/local/lib/R/library/stats/libs/
  517  otool -L 
  518  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 
  519  cd /opt/local/lib/R/modules/
  520  otool -L 
  521  sudo install_name_tool -change libR.dylib /opt/local/lib/R/lib/libR.dylib 

Attachments (1)

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

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by jmpp@…

Description: modified (diff)

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

Cc: konis@… added

Cc'ing maintainer of R.

Changed 13 years ago by konis@…

Attachment: Portfile added

Portfile: upgrade to R 2.6.2 and fixes bug #13831

comment:3 Changed 13 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 13 years ago by ryandesign (Ryan Schmidt)

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

comment:5 Changed 13 years ago by ryandesign (Ryan 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 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.