Can't install OpenMx
Posted on
Ling Zhu
Joined: 05/01/2023
Forums
1. My operating system: macOS Ventura Version 13.2.1
2. R version 4.3.0 (2023-4-21): I just updated my R version. I also used the older R version to install it but failed, so I think maybe update R could work...
3. Error message:
Warning in install.packages :
unable to access index for repository https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3:
cannot open URL 'https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3/PACKAGES'
Warning in install.packages :
package ‘OpenMx’ is not available as a binary package for this version of R
2. R version 4.3.0 (2023-4-21): I just updated my R version. I also used the older R version to install it but failed, so I think maybe update R could work...
3. Error message:
Warning in install.packages :
unable to access index for repository https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3:
cannot open URL 'https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3/PACKAGES'
Warning in install.packages :
package ‘OpenMx’ is not available as a binary package for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Hi, I tried to install the OpenMx with NPSOL. i used: source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R'). I saw there was a solution to this problem in the Forum before that I can build OpenMx from the source repository, but I am not very familiar with the compelling. Is there anything I could do to fix the installation? (I really need the NPSOL optimiser) Thank you!
try again
Log in or register to post comments
In reply to try again by AdminRobK
Thank you
- source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')
- You are now installing the latest version of OpenMx, compiled with NPSOL, that is available for R-4
Warning in install.packages :
unable to access index for repository https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3:
cannot open URL 'https://openmx.ssri.psu.edu/software/bin/macosx/big-sur-x86_64/contrib/4.3/PACKAGES'
Warning in install.packages :
package ‘OpenMx’ is not available as a binary package for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Log in or register to post comments
In reply to Thank you by Ling Zhu
Same problem
> mxVersion()
OpenMx version: 2.21.1 [GIT v2.21.1]
R version: R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0
MacOS: 13.3.1
Default optimizer: NPSOL
NPSOL-enabled?: No
OpenMP-enabled?: No
Her current error:
The downloaded binary packages are in
/var/folders/ts/smyl7nh55637ldjn_yvjby75b76ltc/T//RtmpxTGZ5x/downloaded_packages
> library(OpenMx)
Error: package or namespace load failed for ‘OpenMx’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/laura.wesseldijk/Library/R/x86_64/4.2/library/OpenMx/libs/OpenMx.so':
dlopen(/Users/laura.wesseldijk/Library/R/x86_64/4.2/library/OpenMx/libs/OpenMx.so, 0x0006): Library not loaded: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
Referenced from: <57D15468-935F-33AA-A8FE-859B3C044CB2> /Users/laura.wesseldijk/Library/R/x86_64/4.2/library/OpenMx/libs/OpenMx.so
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib' (no such file), '/usr/local/lib/libRlapack.dylib' (no such file), '/usr/lib/libRlapack.dylib' (no such file, not in dyld cache)
I had the same error message with her before I update My R into 4.3. And I saw there is a given bug in R software website.. My macOS is Ventura, Maybe it has something to do with this?https://ftp.acc.umu.se/mirror/CRAN/
macOS Ventura users: there is a known bug in Ventura preventing installations from some locations without a prompt. If the installation fails, move the downloaded file away from the Downloads folder (e.g., to your home or Desktop)
Thank you for your help! hope we can fix this.
Log in or register to post comments
In reply to Same problem by Ling Zhu
different issue; not sure what to do
Edit: I think the issue with Ventura you referenced is relevant only to installing R, and not installing R packages.
Log in or register to post comments
In reply to Thank you by Ling Zhu
Give it another try.
Log in or register to post comments
In reply to Give it another try. by AdminRobK
Fixed now
Log in or register to post comments
In reply to Give it another try. by AdminRobK
Download & install NPSOL
I am having trouble installing OpenMx with NPSOL.
Here is what I have done:
# Running: MacOS 13.6.5 on 4.2 GHz Quad-Core Intel Core i7
# Downloaded & installed R-4.4.0-x86_64.pkg (for older Intel Macs)
# Running: R 4.4.0 GUI 1.80 Big Sur Intel build (8376)
source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')
require(OpenMx)
Loading required package: OpenMx
Error: package or namespace load failed for ‘OpenMx’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/ngillespie/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so':
dlopen(/Users/ngillespie/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so, 0x0006): tried: '/Users/ngillespie/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/ngillespie/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so' (no such file), '/Users/ngillespie/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
Log in or register to post comments
In reply to Download & install NPSOL by ngillespie
I know what the issue is: we
Log in or register to post comments
In reply to I know what the issue is: we by AdminRobK
Download & install NPSOL
Log in or register to post comments
In reply to Download & install NPSOL by cargoz1
NPSOL+OpenMP should be up soon
Log in or register to post comments