简体   繁体   中英

Created symbolic link is not searchable?

I don't know what is wrong here, I just created a symbolic link in my Mac's terminal as follow:

sudo ln -s ../../System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib /usr/lib/libatlas.dylib

And when I search libatlas.dylib the locate command can't find it:

locate libatlas.dylib

No results for the locate command. Any hint or remark are welcome. thanks

locate doesn't search your file system; it merely reports what it finds in the database refreshed by updatedb (which is run periodically by cron ). Either run updatedb manually, or wait until the next time your system runs it. Then locate should find the file.

You presumably want to create an absolute symlink to a library so why the ../.. ?
Symlinks store whatever you give them

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM