Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Macintosh build error: dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib Post 302576691 by mirni on Friday 25th of November 2011 03:25:14 PM
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:
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
update_dyld_shared_cache(1)				    BSD General Commands Manual 			       update_dyld_shared_cache(1)

NAME
update_dyld_shared_cache -- Updates dyld's shared cache SYNOPSIS
update_dyld_shared_cache [-root directory] [-overlay directory] [-arch arch] [-force] [-debug] [-sort_by_name] [-universal_boot] [-verify] [-dylib_list file] [-iPhone] [-cache_dir dir] DESCRIPTION
update_dyld_shared_cache ensures that dyld's shared cache is up-to-date. This tool is normally only run by Apple's Installer and Software Update, as they are the only official ways for OS dylibs to be updated. But if for some reason you used another mechanism to alter an OS dylib, you should manually run update_dyld_shared_cache. Note that the new cache does not take effect until the OS is rebooted. If a safe-boot is done (booting with shift key held down) the cache is deleted. The dyld shared cache is mapped by dyld into a process at launch time. Later, when loading any mach-o image, dyld will first check if is in the share cache, and if it is will use that pre-bound version instead of opening, mapping, and binding the original file. This results in significant performance improvements to launch time. update_dyld_shared_cache scans the directory /var/db/dyld/shared_region_roots for text files containing paths to mach-o executables. The full dependencies of all dylibs required by those executables is used to determine which libraries are commonly used and should be placed in the shared cache. If one of the text files contains a path to a dylib, that dylib and its dependents will be forced into the cache. update_dyld_shared_cache builds a separate cache file for each architecture. The cache files and a readable text map of the cached are gen- erated to /var/db/dyld. You must be root to run this tool. The options are as follows: -root directory This option specifies the root of an OS installation for which dyld's shared cache should be updated. This is used by the In- staller to update the dyld shared cache in a partition other than the one you into which you are currently booted. The cache files are created in the var/db/dyld directory of the specified directory. Note: if you are manually doing this, be sure to run the update_dyld_shared_cache tool that is in the partition being updated. This assures the cache format created will match that expected when booting off that partition. -overlay directory This option specifies the root of a sparse directory tree. When building the dyld shared cache, any corresponding mach-o files in the sparse directory will override those in the boot partition. This is used by Software Update to build a dyld shared cache for the update that is about to be installed. The cache files are created in the var/db/dyld directory of the specified direc- tory. -arch arch By default update_dyld_shared_cache generates cache files for all architecture that the current machine can execute. You can override this behavior by specifying one or more -arch options and list exactly which architectures should have their shared caches updated. -force This option will cause update_dyld_shared_cache to regenerated the shared cache files even if they appear to be already up-to- date. -debug This option prints out additional information about the work being done. -sort_by_name By default update_dyld_shared_cache assigns a random start address to each mach-o image in the cache. This option causes the start addresses to be chosen in path order, thus subsequent runs will produce the same address layout which can help reproduce some bugs. -universal_boot This option can only be used running on an machine with an Intel processor. It builds caches that can be used when booting on both 32-bit and 64-bit machines. -dylib_list file Instead of scanning /var/db/dyld/shared_region_roots/, this option provides a file that contains a list of the dylibs to use when building the shared cache file. -verify Will regenerate a shared cache in-memory that matches the randomization of the existing shared cache file. Then instead of writ- ing the cache file, it compares the in-memory cache file to the on disk version and reports any differences. -iPhone indicates that cache is not for the current Mac OS X, but for rather for an iPhone -cache_dir directory This option specifies the directory in which to create the cache file(s). If not specified, the cache file(s) are created in the standard location (e.g. var/db/dyld/) of the root partition. FILES
/var/db/dyld/shared_region_roots directory of text files with paths to mach-o images used to determine what should be in shared cache. SEE ALSO
dyld(1) Darwin Oct 10, 2008 Darwin
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy