sunduanchen / Scissor

Scissor package
GNU General Public License v3.0
188 stars 32 forks source link

Scissor installation error #54

Open bioinflix opened 1 year ago

bioinflix commented 1 year ago

Hi, I tried to install Scissor on windows and linux R platforms, but ran into the following installation problems:

Linux

install.packages("sunduanchen-Scissor-311560a.tar.gz",repos=NULL,type="source",dependencies=T) Installing package into '/root/R/x86_64-pc-linux-gnu-library/4.1' (as 'lib' is unspecified) Warning in untar2(tarfile, files, list, exdir, restore_times) : skipping pax global extended headers

  • installing source package 'Scissor' ... using staged installation libs make: Nothing to be done for 'all'. installing to /root/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-sunduanchen-Scissor-311560a/00new/Scissor/libs R inst byte-compile and prepare package for lazy loading help * installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location Error: package or namespace load failed for 'Scissor' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/root/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-sunduanchen-Scissor-311560a/00new/Scissor/libs/Scissor.so': /root/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-sunduanchen-Scissor-311560a/00new/Scissor/libs/Scissor.so: invalid ELF header Error: loading failed Execution halted ERROR: loading failed
  • removing '/root/R/x86_64-pc-linux-gnu-library/4.1/Scissor' Warning message: In install.packages("sunduanchen-Scissor-311560a.tar.gz", repos = NULL, : installation of package 'sunduanchen-Scissor-311560a.tar.gz' had non-zero exit status

Windows

devtools::install_github('sunduanchen/Scissor') Downloading GitHub repo sunduanchen/Scissor@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/sunduanchen/Scissor/tarball/HEAD' failed install.packages("sunduanchen-Scissor-311560a.tar.gz",repos=NULL,type="source",dependencies=T) Warning in untar2(tarfile, files, list, exdir, restore_times) : skipping pax global extended headers

  • installing source package 'Scissor' ... using staged installation libs

*** arch - i386 C:\rtools40\mingw32\bin\nm.exe: RcppExports.o: file format not recognized C:\rtools40\mingw32\bin\nm.exe: Scissor.o: file format not recognized C:/rtools40/mingw32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o Scissor.dll tmp.def RcppExports.o Scissor.o -LC:/PROGRA~1/R/R-41~1.3/bin/i386 -lR RcppExports.o: file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'Scissor'

Can you help solve this problem? Thanks!

adrienneparsons commented 1 year ago

I'm having a similar problem on my Mac. I get the following error trying to use devtools:

devtools::install_github("sunduanchen/Scissor")

Using github PAT from envvar GITHUB_PAT Error: Failed to install 'unknown package' from GitHub: HTTP error 401. Bad credentials

Rate limit remaining: 51/60 Rate limit reset at: 2023-08-23 19:13:59 UTC