Macintosh build error: dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Macintosh build error: dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib
# 1  
Old 11-25-2011
Macintosh build error: dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib

Hi all, my first post here. I'm trying to load hypermail on my Mac (Tiger 10.4.11). It seemed to install just fine, but when I run the test build I get this error:

dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib
Referenced from: /Users/sstark/Desktop/hypermail/tests/../src/hypermail
Reason: image not found
./testhm: line 162: 8506 Trace/BPT trap $HYPERMAIL -c test.rc -m $TESTMAIL
+ exit 1

I searched for libpcre.0.dylib and it wasn't found. Any idea what's up or what I can do to fix it?

thanks
Scott
# 2  
Old 11-25-2011
Hi and welcome to the forum.
It seems like you are missing a lib that the program depends on. The lib is a dynamic one, meaning it is used at the runtime, that's why you didn't get an error during install. It is a library that provides Perl Compatible Regular Expressions. You can download it from here.
If you install this lib (and thus have the file libpcre.0.dylib somewhere on your machine) and still getting the error, it means that the file cannot be located. Environment variable DYLD_LIBRARY_PATH can be set to point to the location of the dynlib.
Code:
export DYLD_LIBRARY_PATH=/path/to/libpcre.dynlib

and then try to run the program.
This User Gave Thanks to mirni For This Post:
# 3  
Old 11-26-2011
Thanks for the tip! Installing now, but 'make install' isn't working since I don't seem to have permissions:

install: /usr/local/lib/libpcre.0.dylib: Permission denied

This is probably a question for a Mac forum, but why don't I have permissions on my own machine? I can't su root (and sux isn't found).

Scott
# 4  
Old 11-26-2011
The /usr directory is owned by root with root the only user that can write in that directory. You belong to the group admin which allows you to escalate privileges to root by using sudo. You need to->
Code:
sudo make install

This User Gave Thanks to xbin For This Post:
# 5  
Old 11-26-2011
Wow, thanks, that worked like a charm! I appreciate the detailed instructions, and I'm now up and running. Thank you!

Scott
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. UNIX for Advanced & Expert Users

/usr/lib/libv12n.so

Hi, I want to use the function "v12n_domain_uuid" on solaris box. The library "libv12n" is present in /usr/lib but i can't locate the header "libv12n.h" anywhere in the box. How do i run the API "v12n_domain_uuid" (4 Replies)
Discussion started by: skyineyes
4 Replies

3. UNIX for Dummies Questions & Answers

use of /usr/lib/nsr

Hello, I have this folder on my one of the machine but not on other. /usr/lib/nsr can anyone tell me for what this folder is used ? Thanks (2 Replies)
Discussion started by: yatrik007
2 Replies

4. UNIX for Dummies Questions & Answers

/usr/local/lib is not searched by ld-linux.so by default?

it seems that /usr/local/lib is not searched by ld-linux.so by default in fedora14. If so, why some software put its lib files in /usr/local/lib? eg: glib and gtk+. (6 Replies)
Discussion started by: vistastar
6 Replies

5. Solaris

messages error can not open module /usr/lib/security/pam_unix_session.so.1

Hi, I always receive the following intermittent error on the /var/adm/messages, can someone help me please on what to do and what to check for these errors to disappear? What can be the problem with my ftp? Please see details of solaris below. Thanks in advance! SunOS 5.10 Generic_127111-08... (4 Replies)
Discussion started by: ayhanne
4 Replies

6. Solaris

/usr/lib/snmp/snmpdx: can't open the file - Error Messages while rebooting

I have an X4500 server running solaris 10 and when I reboot my system it displays the following errors messages. Could someone help me with this ??? NOTICE: pci8086,1011 - e1000g : Adapter 100Mbps full duplex copper link is up. Nov 8 17:41:46 /usr/lib/snmp/snmpdx: can't open the file Nov 8... (2 Replies)
Discussion started by: bharu_sri
2 Replies

7. UNIX for Advanced & Expert Users

Library not loaded?

I am trying to install a scientific program onto my mac and when i try and execute it this error comes up and i cant find any literature on the net to fix it... dyld: Library not loaded: /usr/local/lib/libgfortran.2.dylib Referenced from:... (4 Replies)
Discussion started by: olifu02
4 Replies

8. UNIX for Dummies Questions & Answers

/usr/lib/32/32-> Question

Hello UNIX people. I was just cruising around my UFS and came across the directory /usr/lib/32. This directory continues up many directories (/usr/lib/32/32/32/32->). Each level of 32/ directory seems to be a copy of the previous one. I have been working with UNIX for a little while now, but I... (3 Replies)
Discussion started by: shaggy
3 Replies
Login or Register to Ask a Question