Sensible Open Source

Blog Status

  • 6 yrs 43 wks 6 days old
  • Updated: 3 Feb 2012
  • 466 entries
  • 193 comments
Total: 2,261,759
since: 5 Apr 2005

LinkBlogS

Creating Vidcasts

18 June 2007, Monday 7:05 P GMT-06
Tags:      

Man, Can't Microsoft Catch A Break?

16 March 2007, Friday 12:26 P GMT-06

Viacom, Google andYou Tube, Oh My!

16 March 2007, Friday 12:25 P GMT-06

Switch to digital TV to start in October

16 March 2007, Friday 7:46 A GMT-06

Is the Ice Ready? No, Its Still To Hot To Use...

16 March 2007, Friday 7:43 A GMT-06

MIT Entire Curriculum At disposal of e-learners

6 March 2007, Tuesday 11:52 A GMT-06

A cure for e-mail attention disorder?

2 March 2007, Friday 12:51 A GMT-06
Tags:  

Windows-on-Mac software gets virtualization update

1 March 2007, Thursday 5:08 A GMT-06

EnterpriseDB is/n't Open Source

1 March 2007, Thursday 3:37 A GMT-06

BitTorrent download portal debuts

27 February 2007, Tuesday 9:05 A GMT-06

$45b TXU buyout

27 February 2007, Tuesday 9:02 A GMT-06

iPhone Competitors Got The Touch

26 February 2007, Monday 3:43 A GMT-06
Tags:        

HTC - Smart Mobility

25 February 2007, Sunday 4:22 A GMT-06

Hard to find 1-800 numbers

23 February 2007, Friday 8:35 A GMT-06

Cuba Embraces Open-Source Software

21 February 2007, Wednesday 3:10 A GMT-06

Vista at the tipping point, Err Dipping Point?

11 February 2007, Sunday 11:11 A GMT-06
Tags:  

PostgreSQL Open Source And Persistence

3 February 2007, Saturday 10:32 P GMT-06

Blackboard Pledges No Patent Blocks

3 February 2007, Saturday 10:28 P GMT-06

UVU

5 January 2007, Friday 11:58 P GMT-06

Open-source IP PBX software appliance"

4 January 2007, Thursday 3:44 A GMT-06

Asterisk an under-appreciated Open Source Success Story

4 January 2007, Thursday 3:43 A GMT-06

Open Source AJAX Tooling

4 January 2007, Thursday 3:41 A GMT-06

Google MAIL API Secuirty Alert

1 January 2007, Monday 7:37 P GMT-06
Tags:    

United States Patent Application: 0060288329

26 December 2006, Tuesday 4:00 A GMT-06

LinkBlog Popular Tags

                                       







What is DYLD and how to clear the Shared Cache?

posted 29 December 2009, Tuesday

UPDATE : JAN.08.2009 : DYLD  is the dynamic link editor:  The error below is an error message from the dyld.  Sometimes, during the dynamic link operation of a compiled the target libraries differ from the linker.  End result, linking can not be accomplished.

The biggest reason why your here is you probably found SuperDuper!  (Awesome Program, pay for the license...  You'll thank me from today until MAC OS IC). Every once in a while when SuperDuper!  restores an image upon reboot you may receive : "dyld: shared cached file was build against a different libSystem.dylib, ignoring cache"  Which typically raises an eyebrow or two. No worries, all this means is during a restore of some sort, in this case SuperDuper! , the cache was built with a different operating system's library (ie: Leopard to Snow Leopard).  

A very specific scenario is when backing up one's Leopard installed Macintosh HD with SuperDuper!  (Will call this backup A). Than installing or upgrading Snow Leopard 10.6.X to the hard drive and creating a backup of the fresh install (Will call this backup B) (Note: This procedure is a VERY smart thing to do, by the way) both systems are now captured from pre and post upgrade of a new operating system.

Now, for some reason one may want to fall back to the Leopard system and uses Backup A with SuperDuper!  to restore the systems Macintosh HD.  During the restore the shared cache is rebuilt by SuperDuper!  before the reboot to the new OS occurs. Now it is at this point or when restoring Backup B that the cache generated does not finish or never gets cleared out correctly to the most current OS (Target backup in this Case to B but it contains A's cache).

Once the system is rebooted and one drops to a terminal shell an error maybe seen as shown below: 

 "dyld: shared cached file was build against a different libSystem.dylib, ignoring cache

The solution is way less more dramatic than the TERMINAL error above: 

In a terminal shell type in the following command [Solution Here]

$ sudo update_dyld_shared_cache -force

You should receive a similar response below:

update_dyld_shared_cache[4392] current i386 cache file invalid because /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv has changed

update_dyld_shared_cache: warning mismatched install path in /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera for /usr/lib/libgcc_s.1.dylib

update_dyld_shared_cache: warning mismatched install path in /System/Library/CoreServices/RawCamera.bundle/Contents/Resources/MetadataLib.dylib for /usr/lib/libgcc_s.1.dylib

update_dyld_shared_cache[4392] current x86_64 cache file invalid because /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv has changed

update_dyld_shared_cache: warning mismatched install path in /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera for /usr/lib/libgcc_s.1.dylib

update_dyld_shared_cache: warning mismatched install path in /System/Library/CoreServices/RawCamera.bundle/Contents/Resources/MetadataLib.dylib for /usr/lib/libgcc_s.1.dylib

 

Your cache is now updated and your system should been rolling along nicely!

 

Cheers,

sos 

 

 

 

tags:              

links: digg this    del.icio.us    technorati    reddit




1. katy lavallee left...
10 January 2010, Sunday 3:04 pm

thank you thank you thank you thank you thank you. i was becoming very annoyed.


2. SOS left...
15 January 2010, Friday 11:47 am :: http://sos.blog-city.com/

Glad It helped!!


3. Pedro left...
2 July 2010, Friday 11:34 pm

Bless you. This was exactly my scenario and problem. Solved. THANK YOU!


4. SOS left...
3 July 2010, Saturday 4:33 am :: http://sos.blog-city.com/

Awesome!! Glad it helped!


5. Dan left...
15 March 2011, Tuesday 11:13 pm

But this doesn't resolve the issue. The script still appears in terminal everytime I open it....?


6. SOS left...
22 March 2011, Tuesday 6:50 pm :: http://sos.blog-city.com/

Not sure what script your referring to... Are you meaning the update_dyld_shared_cache -force command??

Maybe you can give some more details about your situation.


7. Jim left...
26 March 2011, Saturday 3:22 pm

I agree with Dan. It doesn't resolve the issue. It just brings you back to the start. "dyld: shared cached file was build against a different libSystem.dylib, ignoring cache" still remains every time you open Terminal. Any thoughts?


8. SOS left...
28 March 2011, Monday 3:37 pm :: http://sos.blog-city.com/

Jim,

I think I understand, now, Dan's and your predictament.

I went back to my original IMG that generated this error. I saved this and made it a Read ONLY. I than copied it in order to replicate the error from the olded image.

Than I issued the command I than saved the image out, this being a new image file now with an updated cache.

I opened the new image up and it worked fine.. No repeat of the original problem. I have used this NEW image since i wrote the article.

I just recently bought a new MAC and will go through this upgrade process again and see if it repeats itself. However, this time i am going from Snow Leopard to Snow Leopard and I do not anticipate this error.

I am unclear why when you force the cache to purge that you are getting the same issue on a reopen.

I'll give it another good look at it this week for you guys!! :-)


9. SOS left...
28 March 2011, Monday 3:42 pm :: http://sos.blog-city.com/

Dan/Jim feel free to email me at sensibleopensource@gmail.com.