-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anaconda: x86_64-conda-linux-gnu-c++ -std=gnu++11: checking whether the C++ compiler supports the long long type... no #452
Comments
Seems you are using a very old version of R? You have not provided us with any details on your config (operating system, R, current compiler flags used, see https://cran.r-project.org/doc/manuals/r-devel/R-admin.html ) Have you tried |
Thank you for your reply. I use R in 3.6.3 version. Operating system is CentOS7, conda version 4.9.2. For commands, I tried install.packages("stringi", configure.args="--disable-cxx11") but still not working. |
What version of gcc ( Have you tried tinkering with the compiler settings, under Are you able to install other packages that rely on C++11, say, https://cran.r-project.org/web/packages/vroom/index.html ? |
gcc version 7.5, and vroom was installed successfully. Thank you gagolews for answering my silly questions patiently. |
Great 👏 |
Hi, I have encountered the same issue. Could you please tell what exact lines have you changed in the Makefile? |
Makeconf is path-to-/lib/R/etc/Makeconf, but not Makefile. Lines would be like this:
Hope it works for your error. |
I'm having this same issue on Ubuntu 20.04 with conda 4.10.1. I've tried the following possible solutions and troubleshooting steps mentioned in this thread and am still having the same issue. Would any more information help? Anything else to try? Thanks much!
|
I tried to reproduce (Ubuntu 21.04, conda 4.10.3) the above:
but it runs cleanly.
@naglemi cd /tmp
wget https://github.com/gagolews/stringi/archive/master.zip
unzip master.zip
cd stringi-master
./configure And submit the output from Can any one help @naglemi ? |
Thank you @gagolews, I just followed the three steps as you described above for a new environment. It is working for me now. In the environment I was using previously, I installed Thanks again! |
I meet the same problem while i was using R (R was installed by miniconda 3, Ubuntu Server 20.04 LTS 64bit, R 4.0.5, , and stringi package was installed through install.packages('stringi')) R installation: Here are the problems while installing "stringi" installing source package ‘stringi’ ... ERROR: configuration failed for package ‘stringi’ The downloaded source packages are in a more detailed version of the error report: I had tried I had ran the code mentioned by @gagolews Here are the outcome from ./configure: Here are the config.log I have tried updateing the R to version 4.1.0, made no difference |
I was facing the same issue, this worked for me:
|
Thanks very much for your advice! in the report from @gagolews , both versions of gcc were checked at first : in my report:
|
I am using redhat 7 with same issue. I tried R.4.05, R.4.1.2 with conda x86_64-conda-linux-gnu-c++. No luck, by changing to c++11, tried above methods. It did not work for me. By reading above threads, it is very common problem for conda environment using its c compiler there. A few years ago, in the same redhat 7 machine, "stringi" was installed in old R3.2.2 without any problem. I don't know what else to try, except can we configure to use original unix g++ instead of conda x86_64-conda-linux-gnu-c++? Thanks for any suggestion. |
Have you tried the above-mentioned fix? |
I don't use rpy2. I read the thread before, I also downloaded new version R.4.1.2. It still did not work. I switched to a container to try my luck. Thanks. |
I found that the R package stringi can be found in https://anaconda.org/ |
whoaqing, Thanks for the tip. We had the same issue. Your method also worked for me. I did not know that r-stringi is stringi. Thanks a lot! |
That also works fOR me. Thanks |
I 've got same error today. I doubted that stringi's configure script was reporting wrong messages about long long type. So I extracted c++ code snippet that checking long long support from configure script, and tried to compile it by 3 or more verions of c++ compilers. But all of versions supported this syntax as expected. The solution for me was like this: |
Sorry to bring this thread up again, but I have been battling with this for two days and none of the above solutions have worked for me... I have the same exact issue, I'll paste the whole message below but it seems to be the "long long type" issue. In my case I do have a version of stringi installed, but it's v.1.7.6 and I need v.1.7.8 so I can use updated packages from Bioconductor -- I'm trying to update BiocManager to v3.15. I'm working in R v4.2.0. Thing I have tried and failed: Conda -- this usually works for me but not this time Change Makeconf Configure
Also nothing. Any ideas of additional things I could try, or check on my end and maybe are misconfigured? I'm kinda out of ideas here and it has completely blocked the progress of my project. All error message are below for readability. R error message
** conda error message ** configure message
|
Have your tried @bitsyamagu's solution?
|
Yeah, this gives me the same result as trying to install
Followed by a huge list of conflicts... |
When I compiled c++ snippet by C++ compiler under my conda environment, I got an error message from linker that complains lack of reference to some c++ functions. So I could find compatible packages from the error message.
|
Just wanted to add as an update that I did the opposite of this, made and empty env and successfully installed stringi v1.7.8 with:
But then I couldn't install R v4.2.0 (If I don't specify the version it successfully installs v4.1.3):
Again followed by a huge list of conflicts. So ultimately, I can install stringi v1.7.8, but not together with R v4.2.0 -- which pretty much defeats the purpose. Has no one else ever had this weird conflict? @bitsyamagu I don't really understand what you did in your comment |
I have the same issue: In my Makeconf file:
I tried to change it to:
It did not work... Any help??? Details of log is in #495 |
This works for running "library(stringi)" This will only install a specific version of string (1.7.6 in my case on my Centos machine), but when I install another R package which depends on a higher version fo stringi:
This led to the same errors:
|
As far as I am concerned, on CentoOS, in order for the above to work, you will have to install libgmp-devel (or libgmp-dev) via dnf or yum or whatever other package manager is out there.... |
Also, are you able to install other R packages successfully (those that require compilation), e.g., |
Thanks for your reply! I talked with the IT from our lab - I tried to install it on the server - and we found the problem is from Anaconda. The IT told me that Anaconda often messed up with these R dependencies. So I disabled Anaconda and installed the software directly in R successfully. Best regards |
I my case on Ubuntu Bionic 18.04 LXC image I have set initially
Note above configure testing
|
I tried almost all the instructions and command I can search to solve the problem online but still not working. The feedbacks are posted.
What can I do?
The text was updated successfully, but these errors were encountered: