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

How to install to computer with out internet? #24

Open
Henrietta1989 opened this issue Jan 20, 2019 · 4 comments
Open

How to install to computer with out internet? #24

Henrietta1989 opened this issue Jan 20, 2019 · 4 comments

Comments

@Henrietta1989
Copy link

I would like to install afsctool to Mac 10.7.5 which don't have internet access at all.

Is this possible?

@RJVB
Copy link
Owner

RJVB commented Jan 20, 2019 via email

@Henrietta1989
Copy link
Author

I dragged it to usr/bin/ (OS 10.7.5) folder but it don't work.

@RJVB
Copy link
Owner

RJVB commented Jan 29, 2019 via email

@dm0123
Copy link
Contributor

dm0123 commented Mar 24, 2022

I dragged it to usr/bin/ (OS 10.7.5) folder but it don't work.

I think the issue here is that CMake module 'FindZLIBP.cmake' doesn't handle -rpath link flag. So afsctool is linking by absolute paths to at least zlib.
You may see if it is the case by running 'otool -L afsctool' in terminal.
If it says something like

afscompress:
	/Users/c/homebrew/opt/zlib/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1141.1.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1200.3.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
	/System/

then you may change it via install_name_tool like so:
install_name_tool -change /Users/c/homebrew/opt/zlib/lib/libz.1.dylib @rpath/libz.1.dylib bin/afscompress
provided you have libz.1.dylib somewhere in search paths.

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