caiohamamura / rGEDIsimulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install rGEDIsimulator package from git

Liuhl555 opened this issue · comments

Hi!
I've tried different ways to install the rGEDIsimulator package but none works

image
image
image
It seems Git encountered an issue while attempting to download packages from GitHub
My git is confiurged and no network issues. ChatGPT says there may be some problem with Git or github
Could you please tell me how solve this problem?

Thanks!

Can you install any package at all from GitHub?
If you run system("git --version") does that work? What is the output?

Thank you for your reply!

I successfully installed the rGEDI package by the devtools::install_git() method days before, but I can't install any package by the same way now,and devtools::install_github() method also doesn't work for rGEDIsimulator package but works for other packages .
And I get the git version 2.43.0.windows.1 when run system("git --version") , seems normal?

Thanks!

I'm also having the same issue
ERROR: compilation failed for package 'rGEDIsimulator'

  • removing 'D:/r/R-4.3.3/library/rGEDIsimulator'
    Warning message:
    In i.p(...) :
    安装程序包‘C:/Users/WGR/AppData/Local/Temp/RtmpoFKUyY/file3cb0e00ddf/rGEDIsimulator_0.1.1.tar.gz’时退出狀態的值不是0
    Has your problem been solved, can you tell me how it was solved?

Hello, I met the same problem as you, may I ask if you finally solved it? What method was used to solve it? Thanks sincerely!

Hello, is it windows? If so you need to install the appropriate version of rtools

Yeah it is Windows. I have tried rtools but it didn't work.

The message from before is regarding rtools, if you have a different error message you need to post a different issue

Thank you for your answer. Sorry, my statement may be ambiguous, I mean, I tried to install the rgedi package using Rtools 4.3, but still couldn't. The error I encountered was almost identical to the error mentioned by user liuhongliang-818 above. And the version of git I use is git version 2.35.0.windows.1. It also didn't work when I tried to install the rGEDIsimulator package by downloading the zip package locally. It didn't report an error, but it didn't install successfully either.

Thank you for your answer. Sorry, my statement may be ambiguous, I mean, I tried to install the rgedi package using Rtools 4.3, but still couldn't. The error I encountered was almost identical to the error mentioned by user liuhongliang-818 above. And the version of git I use is git version 2.35.0.windows.1. It also didn't work when I tried to install the rGEDIsimulator package by downloading the zip package locally. It didn't report an error, but it didn't install successfully either.↳

If you're using a VPN when installing the rGEDIsimulator package from git or github,I suggest you to set up proxy by the command Sys.setenv(http_proxy = "https://your_proxy_ip:port") before you install the package. By setting up proxy the erro:Failed to install 'unknow package' from Git:Command failed (128) may be solved.

But I encountered the same issue just as @WangGR1 referred above

Thanks for your advice. I have tried it but I was faced with a new error: Failed to install 'rGEDIsimulator' from Git:Command failed (128)
image

I also encountered this issue before, and now I have successfully resolved it. I have re downloaded the old versions of R and Rtools, and deleted the original R, Rtools, and RStudio (but the reinstalled RStudio version did not change). Here, I used the Geek tool to delete them, and also deleted the registry related content of these software. The reinstalled versions are as follows: R-4.2.2 win. exe, rtools 42-5355-5357. exe, RStudio 2023.12.1-402. exe, and during this reinstallation, I did not manually add any environment variables, only changed the installation path (in full English). I hope this is helpful to you.

Thank you for sharing @cHen2th, we actually need to update the package to run in 4.3 version. It is quite a nightmare to maintain compiled packages depending on third party libraries, every time the rtools version changes we have to update the 'Makevars.ucrt' file. I will soon try to update that.

Thank you very much for your advice @cHen2th , and I have successfully solved my problem according to your suggestions.

Thank you for sharing @cHen2th, we actually need to update the package to run in 4.3 version. It is quite a nightmare to maintain compiled packages depending on third party libraries, every time the rtools version changes we have to update the 'Makevars.ucrt' file. I will soon try to update that.

Thank you for your efforts

I also encountered this issue before, and now I have successfully resolved it. I have re downloaded the old versions of R and Rtools, and deleted the original R, Rtools, and RStudio (but the reinstalled RStudio version did not change). Here, I used the Geek tool to delete them, and also deleted the registry related content of these software. The reinstalled versions are as follows: R-4.2.2 win. exe, rtools 42-5355-5357. exe, RStudio 2023.12.1-402. exe, and during this reinstallation, I did not manually add any environment variables, only changed the installation path (in full English). I hope this is helpful to you.↳

Thank you! I've tried your method(reinstalled R-4.2.2 win. exe, rtools 42-5355-5357. exe, RStudio 2023.12.1-402. exe) but encountered ERROR: dependency 'rGEDI' is not available for package 'rGEDIsimulator' .The dependency package 'rGEDI' seems not available for R-4.2.2 .Have you encountered this problem and how do you solve it?
image

Install rGEDI first, remotes::install_github("carlos-alberto-silva/rGEDI")

Install rGEDI first, remotes::install_github("carlos-alberto-silva/rGEDI")

Thank you for your advice ! I finally installed the package successfully !
Appreciate all your efforts!

I have updated the Makevars.ucrt, now it should work with the 4.3 version.