Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcre.exec() error -5 on boot #1732

Closed
blakejohnson opened this issue Dec 12, 2012 · 11 comments
Closed

pcre.exec() error -5 on boot #1732

blakejohnson opened this issue Dec 12, 2012 · 11 comments

Comments

@blakejohnson
Copy link
Contributor

At 0dba9af and on Mac OS 10.8.2, I get a libpcre related error on boot of julia:

exec: error -5
 in exec at pcre.jl:108
 in search at regex.jl:113
 in split at string.jl:953
 in abs_path_split at file.jl:110
 in abs_path at file.jl:141
 in julia_pkgdir at client.jl:215
 in _start at client.jl:246
@staticfloat
Copy link
Member

I only see this error when I compile with debug mode on. (E.g. make debug). Can you give us an idea of your environment? What compiler are you using, are you using any external dependencies? Do you have homebrew, macports, fink etc. installed?

@blakejohnson
Copy link
Contributor Author

Compiler: Apple Clang 4.1 (tags/Apple/clang-421.11.66)
I have homebrew installed, but I am using julia's default build process (rather than your homebrew recipe). I don't run make install. Is this an @rpath issue?

@blakejohnson
Copy link
Contributor Author

make install doesn't fix anything.

@nolta
Copy link
Member

nolta commented Dec 12, 2012

I can't see to reproduce this. Is there a libpcre in /usr/local/lib? And is LD_LIBRARY_PATH set?

@staticfloat
Copy link
Member

Do you have pcre installed in homebrew? I'm thinking maybe there's some conflict between the pcre compiled by julia and your system pcre

@blakejohnson
Copy link
Contributor Author

There is not a libpcre in /usr/local/lib but there is a libpcre in /usr/lib. My LD_LIBRARY_PATH is set to /usr/local/lib:/usr/lib:/opt/X11/lib

@blakejohnson
Copy link
Contributor Author

Aha! Removing /usr/lib from LD_LIBRARY_PATH fixed the issue.

@staticfloat
Copy link
Member

Setting $LD_LIBRARY_PATH can screw up a lot of stuff on OSX. Is there a reason you've set it?

@blakejohnson
Copy link
Contributor Author

Yes, that was the only way I could get the Tk module to load.

@staticfloat
Copy link
Member

The Tk module will need to undergo a bit of change, I think. In the meantime, if you think this issue is resolved to your satisfaction, can be it closed?

@blakejohnson
Copy link
Contributor Author

Yes, it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants