我正在Windows上开发Eclipse,而Code则部署在Unix上.我使用System.getProperty("key")获取系统属性值...我如何在Eclipse中传递它,以便我不必修改代码,它可以在Eclipse上进行调试?
有什么建议?
我正在使用M1处理器,并且正在运行一个安装脚本,该脚本需要访问我的计算机上不存在的 libsodium 包。
我运行brew install libsodium它在此处安装软件包/opt/homebrew/Cellar/libsodium以及使用brew安装的所有其他软件包
重新运行安装脚本,我得到这个错误,说它正在寻找 libsodium 在这里/usr/local/lib/sodium,但它找不到,并且它在这里找到 libsodium /opt/homebrew/lib/libsodium.dylib但不能'由于架构不兼容而无法打开它(有“arm64”,需要“x86_64”)
LoadError: Could not open library 'sodium': dlopen(sodium, 0x0005): tried: 'sodium' (no such file), '/usr/local/lib/sodium' (no such file), '/usr/lib/sodium' (no such file), '/Users/peter.walker/projects/chopin/sodium' (no such file).
Could not open library '/opt/homebrew/lib/libsodium.dylib': dlopen(/opt/homebrew/lib/libsodium.dylib, 0x0005): tried: '/opt/homebrew/lib/libsodium.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/opt/homebrew/Cellar/libsodium/1.0.18_1/lib/libsodium.23.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')).
Run Code Online (Sandbox Code Playgroud)
您应该如何处理安装仅限英特尔的brew 软件包?