Using the ‘-ldflags -linkmode=external’ flags with the ‘go build’ works. But does anyone know how to fix the environment so I don’t have to use the build flags?
As stated in the golang-nuts thread have you checked that you don’t have
any intrusion software (antivirus / websense, etc) which is preventing Go
to run correctly?
Hi @dfc and @marcosnils , we found the problem. The DYLD_LIBRARY_PATH environmental variable was set. Once we exported this to empty value DYLD_LIBRARY_PATH= inside the .bash_profile, the error went away. Thanks for all the help.
I think she was running something but I don’t remember if she uninstalled it. I did tell her if something stopped working to take note of this change we make to her environment. I was just glad to find a solution that did not require the use of those extra flags. Thanks!