-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error installing entab-cli #25
Comments
Thanks so much! Unfortunately the last stable version of the CLI is relying on an old/mismatched version of clap so I don't think it'll work anymore, but you should be able to install the CLI by pinning the version to the current alpha ( I think the R package probably has a similar issue in that it's dependent on crates.io instead of the git version because of how R builds it. Both should work once I push 0.3.0, but I wanted to figure out a couple big API things before that (mostly #24 at this point). I can futz with it a little this week and see if there's not a temporary fix though. |
Thanks! I was able to install the alpha version off of git using I did get a couple of warnings. I have no idea what they mean, but I'm including them here in case they're helpful at all. Thanks for all your work on this project.
|
The warnings are because I wrote an overly complicated system to allow e.g. escaping or replacing commas when outputting CSVs, but haven't actually wired it up to the CLI interface so the compiler keeps complaining about it. It shouldn't affect anything though. I just tried pushing out a new alpha version of entab and pinning the R library off it and it looks like it installs properly now with the directions in the README. Thanks so much for reporting these issues! |
Cool. I was able to install the new version successfully on the command line, but I'm now getting a new error with the r package. Everything seems to compile fine, but then at the end I'm getting:
|
Weird. I think I know why that happened, but I'm not sure why it didn't happen locally. Maybe 132495c will fix it? |
Unfortunately not. I'm still getting the same error |
(I see libentab.dylib and libentab.d in the /target/release directory, but no libentab.so) |
I got it to install (!) by editing the last line of the makefile like this:
I don't know if that will break it on linux or something though. I think it might be some kind of platform-dependent issue where mine is building with .dylib and yours is building with .so? |
I think this issue may be relevant: rust-lang/rust#21727 |
I think the rust-lang issue is about iOS specifically? Rust builds dynamic libraries for each platform with different formats/extensions (Linux is so, Mac is dylib, Windows is dll). As far as I can tell, most other Rust-R bindings get around this by building into a static library and then have a wrapper in C that interfaces between that and R. I wonder if this is required for CRAN? I redid the Makefile into Makevars (most other projects use this instead?) in 4efd71b and added a case for Mac OS X. Let me know if this finally fixes it. (If anyone is looking at this in the future, this won't support Windows at all and we'll have to add a Makevars.win with the right build arguments which will probably require actually futzing with a Windows box.) |
I'm getting a slightly different error now. I guess it's still looking for the lientab.so file?
It seems to be running the Makevars sequence successfully, but fails while "** testing if installed package can be loaded from temporary location". I guess this is a bug with R inserting the wrong suffix for the library when it is trying to load the package? |
Yeah, I don't understand why R is trying to load it as a |
I can't say I really understand it either, but that seems to have done the trick! I just installed the r package from your last commit without even a warning |
This seems like a really useful project! Unfortunately, I have not yet been able to install the CLI. I get a number of errors when I run
cargo install entab-cli
as suggested in the read me (reproduced below). I also get a similar set of errors when I try to install the R bindings. I am running Mac OS 12.2.1 (on a m1 mac) with rustc 1.59.0. I have not really used rust before, so I'm not sure if there's some obvious problem I might be missing. Please let me know if there's any further information I can provide. Thanks!The text was updated successfully, but these errors were encountered: