jrs95 / hyprcoloc

Hypothesis Prioritisation in multi-trait Colocalization
https://jrs95.github.io/hyprcoloc/
GNU General Public License v3.0
46 stars 12 forks source link

install package error #30

Open WWz33 opened 5 months ago

WWz33 commented 5 months ago

Hi Dr.James when i want to install it,this error was thrown. I would be most grateful if u could give me some help .Anyway, when I devtools::install_github("other_packages"), everything is fine.

> R.version
               _                                
platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                

minor          3.2                              
year           2023                             
month          10                               
day            31                               
svn rev        85441                            
language       R                                
version.string R version 4.3.2 (2023-10-31 ucrt)
nickname       Eye Holes                        
> 
Sys.info()
          sysname           release           version          nodename           machine 
        "Windows"          "10 x64"     "build 19045" "DESKTOP-37PT7FF"          "x86-64" 
            login              user    effective_user 
  "Administrator"   "Administrator"   "Administrator" 

when build_vignettes = T:error.txt build_vignettes = F:error2.txt

Best !

mglev1n commented 5 months ago

I've been noticing similar build errors lately as well, using Github Actions to test mac/linux/windows builds. It looks like forcing installation of an older version of RcppEigen (0.3.3.9.3) may have resolved the issue:

remotes::install_version('RcppEigen', version = '0.3.3.9.3')
remotes::install_github('jrs95/hyprcoloc', build_opts = c('--resave-data', '--no-manual'), upgrade = 'never')
WWz33 commented 5 months ago

Hi Dr.James

I've successfully built it.Thanks for your help.

Best!

laleoarrow commented 2 months ago

Thank you for provide a possible solution! However, in my case I ran into similar issue with the installation with RcppEigen 0.3.3.9.3


ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0' not found
ld: warning: search path '/opt/gfortran/lib' not found
ld: library 'gfortran' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen’

Any idea regarding this issue? Any thought is highly appreciated!

laleoarrow commented 2 months ago

Thank you for provide a possible solution! However, in my case I ran into similar issue with the installation with RcppEigen 0.3.3.9.3


ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0' not found
ld: warning: search path '/opt/gfortran/lib' not found
ld: library 'gfortran' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen’

Any idea regarding this issue? Any thought is highly appreciated!

For Mac user, I updated my solution on #33.