Thanks for the suggestion, perlfan.

I exported the path to the folder containing the .dylib, and here is the result

WBBirkett-M:~ wbirkett$ export LD_LIBRARY_PATH=/Users/wbirkett/Library +/Application\ Support/TextMate/Pristine\ Copy/Bundles/PressCal.tmbund +le/Support/lib/perl5 WBBirkett-M:~ wbirkett$ env TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/kf/hd1w1x888xj_x1018f8m3f2h0000gn/T/ Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.le70PQDJKe/R +ender TERM_PROGRAM_VERSION=404.1 TERM_SESSION_ID=CC263E8D-8730-4F07-9752-F779AA2A8ADD USER=wbirkett LD_LIBRARY_PATH=/Users/wbirkett/Library/Application Support/TextMate/P +ristine Copy/Bundles/PressCal.tmbundle/Support/lib/perl5 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.L73CgT5E19/Listeners PATH=/Users/wbirkett/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/ +local/mysql/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X1 +1/bin:/usr/local/git/bin:/Library/TeX/texbin PWD=/Users/wbirkett LANG=en_US.UTF-8 XPC_FLAGS=0x0 RBENV_SHELL=bash XPC_SERVICE_NAME=0 SHLVL=1 HOME=/Users/wbirkett LOGNAME=wbirkett DISPLAY=/private/tmp/com.apple.launchd.pfkv04jVPR/org.macosforge.xquar +tz:0 _=/usr/bin/env WBBirkett-M:~ wbirkett$ perl -I/Users/wbirkett/Library/Application\ Su +pport/TextMate/Pristine\ Copy/Bundles/PressCal.tmbundle/Support/lib/p +erl5 /Users/wbirkett/Desktop/Rmath_test.pl Can't load '/Users/wbirkett/Library/Application Support/TextMate/Prist +ine Copy/Bundles/PressCal.tmbundle/Support/lib/perl5/darwin-thread-mu +lti-2level/auto/ICC/Support/Rmath/Rmath.bundle' for module ICC::Suppo +rt::Rmath: dlopen(/Users/wbirkett/Library/Application Support/TextMat +e/Pristine Copy/Bundles/PressCal.tmbundle/Support/lib/perl5/darwin-th +read-multi-2level/auto/ICC/Support/Rmath/Rmath.bundle, 1): Library no +t loaded: libRmath.dylib Referenced from: /Users/wbirkett/Library/Application Support/TextMat +e/Pristine Copy/Bundles/PressCal.tmbundle/Support/lib/perl5/darwin-th +read-multi-2level/auto/ICC/Support/Rmath/Rmath.bundle Reason: image not found at /System/Library/Perl/5.18/XSLoader.pm lin +e 71. at /Users/wbirkett/Library/Application Support/TextMate/Pristine Copy +/Bundles/PressCal.tmbundle/Support/lib/perl5/darwin-thread-multi-2lev +el/ICC/Support/Rmath.pm line 183. Compilation failed in require at /Users/wbirkett/Desktop/Rmath_test.pl + line 1. BEGIN failed--compilation aborted at /Users/wbirkett/Desktop/Rmath_tes +t.pl line 1.

DynaLoader gets its initial list of library paths from Perl's %Config hash. On my Mac, the paths are /usr/lib and /usr/local/lib.


In reply to Re^2: XSLoader/DynaLoader Can't Locate Library by wbirkett
in thread XSLoader/DynaLoader Can't Locate Library by wbirkett

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.