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
Troubles installing units (Ubuntu 18.04.1) #223
Comments
Actually, I've noticed a slight difference in output for this version:
output
|
After installing |
Yeap. I see you are using conda. I'm not familiar with conda, but it must be shadowing the system libraries or doing improper things with the paths, because it works with plain Ubuntu. |
Ahh, I missed the conda part, thanks. That gives me some ideas. First of which is to delete conda. Let me play around some more & update in a bit. |
Thanks so much @Enchufa2 for the extra pair of eyes. By rights, since I'm using
instead of the
However, I don't think there's any issue with |
I have no clue about conda, but if it wants to write in |
Yep, that would be the next step... sadly I don't have |
For the record I have the same problem and was because conda. I did: |
I ran into this same issue and was able to solve it, so I figured I'd share the solution here. I too was using conda. In my case I have a project using renv to manage packages so I didn't want to install r-units directly. I was able to fix it like this: First, I installed the udunits2 library using conda: Then, in R, I told renv to find the units includes and libraries inside my miniconda instance: > config <- c(units="--with-udunits2-lib=/path/to/home/directory/miniconda3/lib --with-udunits2-include=/path/to/home/directory/miniconda3/include")
> options(configure.args=config)
> renv::install("units") Presumably, you should be able to use |
I am also having problem installing the units package on LInux. My error is
If there's anyone here that could help me with this, I would really appreciate it |
@Namita-Joshi We would need the complete output. Is |
There's something wrong with your installation. Try the suggested commands. You missed |
That worked! Managed to install the units package. Thank you! |
I'm having a similar issue - I need to install
|
As the error message points out, you need the udunits2 library, so you'll need to ask an admin with the proper rights to install it, or compile it yourself from source and point to its location following what the error message suggests. |
Ok, thank you very much! |
I've run into & been able to solve this issue many times on a few different systems, but I'm stuck this time. First, from
sessionInfo()
:When running
install.packages('units')
I get the familiar:(BTW, I'm not sure where that
config.log
is written?)However, I've already successfully installed all the packages as near as I can tell:
Ran successfully. Now, the possibility is that I'm not
include
ing the right location during install, which should be covered by the--configure-args
part of the helpful message. First, I looked forut_read_xml
in my/usr/include
:So it seems the header is in the "normal" place; anyway, I tried:
Both to no avail.
To make sure I was pointing to the right place per my
sudo apt-get install
ation, I ran:Noting that
libudunits2.so
was mentioned by theconfigure
error, I tried to point to this as well:All fail the same way. As one last attempt to see if it's related to permissions, I ran:
It seems
libudunits2.so
is symlinked to a file that has more restricted permissions, but unfortunately I don't have rights to edit this. Is this a red herring? What else can I try to getunits
installed?The text was updated successfully, but these errors were encountered: