-
Notifications
You must be signed in to change notification settings - Fork 137
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
linux installation without root? #97
Comments
Interesting question. Without asking users to set Can I ask you to do some testing for me? Does it work to
|
OK, I tried this. It fails to find So I tried to do the
I’m guessing that the problem is that On May 24, 2014, at 6:59 AM, Tim Holy notifications@github.com wrote:
|
Is |
yes, it's in the same directory (it's part of the distribution for libhdf5) |
Further testing: I think DL_LOAD_PATH may be broken? This is odd:
|
It's not surprising that, when given the complete path, it would complain about not being able to find a different library in the same directory. But I would have though that |
Same error message:
|
That's a different error message; this time it didn't find |
I tried adding ".so":
|
I thought that I think your best hope is to use |
I'm baffled too. Here's what GDB says:
It definitely forms the right path and it definitely tries to load it with the right file name extension. So then I tried tracking into
This file is in the same directory:
I think it's not using the path of the original file to load subsequent shared objects that are required by |
I would say you're best off reporting this as a bug in Julia (you can point back to this issue, of course). I haven't really waded into libuv-related stuff. Sorry not to be able to help more. You've done a very nice job of isolating the problem! One last thought, though: does it fix it if you launch julia as |
That works fine.
|
OK, it looks like if you're going to do this, you basically have to set I've at least documented the steps needed to make this work in the README---it would be great if you could look that over and edit it for any necessary improvements. |
@swadey, any interest in trying @vtnash's suggestion about loading the libraries manually (e.g., loading |
Sorry about the delay. Sure. I gave that a run and it works. I just added |
OK, we can fix this to be more convenient, then. Reopening. |
Can you try checking out the
When we're sure this works and you get to the point of wanting to follow official releases again, just say |
In fact, let's be more ambitious: after you check out that branch, from within Julia please say |
Although I should say that I'm not certain this will work: presumably it will first try the installation via the package manager, and if that fails (which it will for you) I'm not certain it will try the |
So it fails due to some errors in build.jl. I fixed these but then doesn't actually to download the binaries, it still tries to Here's what I have changed in hdf5 = library_dependency("libhdf5")
#provides(AptGet, "hdf5-tools", hdf5)
#provides(Yum, "hdf5", hdf5)
if WORD_SIZE == 32
provides(Binaries, URI("http://www.hdfgroup.org/ftp/HDF5/current/bin/linux/hdf5-1.8.13-linux-shared.tar.gz"), hdf5, unpacked_dir=Pkg.dir("HDF5/deps/usr/lib/"))
else
provides(Binaries, URI("http://www.hdfgroup.org/ftp/HDF5/current/bin/linux-x86_64/hdf5-1.8.13-linux-x86_64-shared.tar.gz"), hdf5, unpacked_dir=Pkg.dir("HDF5/deps/usr/lib/"))
println(hdf5.providers)
end |
And then it all works, right? @loladiro & @staticfloat, any insight on whether BinDeps can be configured to use a fallback binary install if apt/yum fail? Here this issue is, how to handle library dependencies for a user who does not have root access? |
sorry, yes it does work if I manually put the libraries into |
Hmmm.... I'm not sure why it wouldn't be working. That all looks right to me. :P |
@swadey, it might be good to show us the errors that happen with |
sure:
|
'Doh! I closed some parens incorrectly. Can you |
I'm pretty sure I fixed those before trying it, but I can do this tomorrow thanks,
|
@timholy yes, these fixes were the ones that I had made myself (so they are good)! that said, it still results in the same error. |
I do have root permission but had to build the libraries from source and ran into similar issues. I resolved them with help from this thread and the new README and am just documenting the resolution. Amazon EC2 Built and installed SZIP 2.1 from here Built and installed HDF5 from here In the julia console,
The resolution was
|
Not wanting to create another ticket, since this one is still open.
|
Sorry, that only fixed the Pkg.build problem. Still working on "using HDF5", which is still complaining about libhdf5 not being defined |
Somehow it's working now, after a couple of build attempts. I noticed, however, that I don't have a clean checkout. Somehow Pkg.rm fails to cleanly uninstall the package. |
Hello, I am using Julia 0.6.2 on a linux cluster. When running Pkg.build("HDF5") I get the following error message E: Opening /etc/apt/sources.list.d/debian.list - ifstream::ifstream (13: Permission denied) LoadError: failed process: Process( The build command for HDF5 fails. Apparently some julia package (perhaps BinDeps) call "apt-cache showpkg hdf5-tools" which leads to these errors. This apt-cache command also generates an error when called from the command line. On this system various choice of libhdf5_blabla.so files are available, which I can choose from using a module system. But following the suggestion in the README doesn't solve the problem. |
I'm guessing fixing #471 would fix this |
It seems to be a problem in BinDeps. BinDeps first calls "apt-cache -v" to test apt-cache. This test passes on my system. Then it calls "apt-cache showpkg hdf5-tools" which fails and causes the build command to fail. I commented out the line |
I have a similar problem as @swadey--I'm using RHEL and don't have sudoing privileges. I read the information in the readme, but my problem is I already have to preload the library folder just to get PyPlot working in Julia 0.6.2. The method I'm using to make PyPlot work is as described here, although my library folder was different. Specifically:
How can I get HDF5 to work as well? I downloaded the binaries for HDF5, thinking I could put the library files into the anaconda3/lib folder, but I don't know if (e.g.) libz.so in the binary is the same as the one I already have in the anaconda library, and I don't want to overwrite anything that will then break PyPlot.. or something else. EDIT: The solution from a similar thread on ZMQ worked for me. Specifically, comment out the line |
I am in a similar situation. I am using Julia on a centrally maintained cluster and I do not have root access. For some reason, the already installed hdf5 libraries are not being used. Following the previous advise, I just commented out all of the |
should be fixed by the latest version when it goes through |
I'm on a linux box where I don't have root or sudo privileges. Is there a way to install prereq libraries so that Pkg.add() doesn't fail for HDF5?
The text was updated successfully, but these errors were encountered: