-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
“brew install r” error: dyld: Symbol not found: _rl_sort_completion_matches #15063
Comments
Ran into the same problem on lion. I worked around it by manually editing the r.rb file according to https://github.com/mxcl/homebrew/pull/8628/files#diff-0 (needed just the ENV stuff). |
Does this happen if you build with |
Just chiming in: I had the same issue with R linking against Building with |
@mxcl potential superenv issue here. |
Built for me! Need some $ brew install r
==> Downloading http://cran.r-project.org/src/base/R-2/R-2.15.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/r-2.15.1.tar.gz
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the
==> ./configure --prefix=/usr/local/Cellar/r/2.15.1 --with-aqua --enable-R-frame
==> make
==> make install
==> Downloading http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_com
######################################################################## 100.0%
==> Caveats
R.framework was installed to:
/usr/local/Cellar/r/2.15.1/R.framework
To use this Framework with IDEs such as RStudio, it must be linked
to the standard OS X location:
ln -s "/usr/local/Cellar/r/2.15.1/R.framework" /Library/Frameworks
To enable rJava support, run the following command:
R CMD javareconf JAVA_CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/r/2.15.1: 1451 files, 52M, built in 20.7 minutes |
Thanks, I can confirm that setting ENV as per #8628 works, as well as building with
|
R builds fine for me under superenv as well. However, I think this may be the problem that is catching some people:
Apple ships a My best guess is that the users running into problems may have some additional variable set, such as |
Some DYLD nonsense is caught by |
I think I igured it out by dumping environment variables.
So, it looks like superenv is breaking |
For superenv the place to look is in the cc wrapper in Library/ENV/4.3, and figure out what order things are being placed in the flags passed on to the real tools. |
To know what superenv does I intend to make this output with make output since it's inconvenient. |
Still worksforme. Can't fix without some gisted verbose output. |
same error -- same fix. $ brew install R --env=std the error was: ==> make |
Sorry for coming back so late. You may find the output of |
Thanks On 15/10/2012, at 10:40 PM, Lifepillar notifications@github.com wrote: Sorry for coming back so late. You may find the output of brew install — |
brew install r and it errored out. https://gist.github.com/3984251
|
@lifepillar You posted a log containing the dyld error flat namespace issue. Thanks. |
fwiw I just had success on ML doing |
fails for me on Lion $ brew install r --env=std READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting These open issues may also help: $ ls -l /usr/lib/libreadline.dylib $ brew --config $ export |
You seem to have gcc installed, which might have a gfortran that's confusing things. I believe this is meant to work well if you
as versus using a gcc install. Is that the case? |
Anybody having this problem running a Xcode-only system? Here is my
|
Should I add |
Well, it might fix the problem. The issue is that we still haven't pinned down what exactly is causing this, so I don't know if forcing a standard environment build will fix the issue. |
At least I can isntall R with superenv. I don't need |
Will |
update xcode command line tools and gfortran then install r -- finally worked for me |
I didn't have any problems updating R recently. I have the latest Xcode and command-line tools installed. |
I'm pretty sure about what was happening here: R was getting linked against the system The part that I have no idea about is why it is happening. I've gone through 6 physical macs of various models and setups along with countless virtual machines and have never been able to trigger this. May want to consider closing as "cannot reproduce". |
Updating gfortran helped me, thanks @tyzao. Can we add fortran version requirement to R formula?
|
On trying to install R 2.15.1, I am experimenting the same bug as in #7950:
It is linking against libedit instead of readline. Any idea why? I have run
brew update
, and Homebrew “is raring to brew”.The text was updated successfully, but these errors were encountered: