Comments (5)
add the path to libramcloud.so
to the LD_LIBRARY_PATH
environment variable
- add this line to your
.bashrc
fileexport LD_LIBRARY_PATH=/home/antd/RAMCloud/obj.master
in my case that's where the filelibramcloud.so
is located - then execute the same command to avoid rebooting the system
export LD_LIBRARY_PATH=/home/antd/RAMCloud/obj.master
- you can now run
sudo ./gradlew run -Plocator=basic+udp:host=localhost,port=11100
Plocator
here is the service locator for the coordinator and not a path to a file
from ramcloud.
This is not working for me unfortunately.
The path to my libramcloud.so is /home/ramdb/RAMCloud/obj.master/libramcloud.so
Did all the steps described above by you. Here is the output of LD_LIBRARY_PATH:
ramdb@ramdb:~/RAMCloud/obj.master$ echo $LD_LIBRARY_PATH
/home/ramdb/RAMCloud/obj.master
Here is the output while trying to run the client.
ramdb@ramdb:~/RAMCloud/bindings/java$ sudo ./gradlew run -Plocator=basic+udp:host=ramdb,port=11100
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:javah UP-TO-DATE
:compileMainSharedLibraryMainCpp UP-TO-DATE
:linkMainSharedLibrary UP-TO-DATE
:mainSharedLibrary UP-TO-DATE
:copyLibs UP-TO-DATE
:jar UP-TO-DATE
:startScripts UP-TO-DATE
:installDist UP-TO-DATE
:make UP-TO-DATE
:run
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libramcloud_java6503341304544372223.so: libramcloud.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at cz.adamh.utils.NativeUtils.loadLibraryFromJar(NativeUtils.java:116)
at edu.stanford.ramcloud.Util.loadLibrary(Util.java:47)
at edu.stanford.ramcloud.TestClient.<clinit>(TestClient.java:32)
:run FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':run'.
> Process 'command '/usr/lib/jvm/java-7-oracle/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Any other suggestions would be much appreciated.
from ramcloud.
Hi @centrys-sergiu
sudo doesn't preserve your environment variables (in particular, LD_LIBRARY_PATH). Can you run this without using sudo? I don't think sudo should be necessary to run this.
Best,
Jonathan
from ramcloud.
You are right! However in order to run the client without sudo, I had to remove all the folders that were generated at build with sudo.
Thanks
from ramcloud.
Awesome. As far as I know, btw, building shouldn’t require sudo. You may want to consider building without it to avoid this problem.
from ramcloud.
Related Issues (19)
- fatal error: boost/foreach.hpp: No such file or directory HOT 5
- protobuf related errors while building RAMcloud HOT 6
- trouble when starting the coordinator HOT 3
- storage node : deadline exceeded HOT 1
- some puzzles on RAMCloud setup HOT 4
- the file hierarchy in src folder is confusing HOT 1
- Linking issues for TestClient HOT 2
- RAMCloud depends on boost
- Compilation Error: Undefined reference to protobuf HOT 4
- Standalone version of memory allocator HOT 2
- Request for (Very) High Level Status on Two Features + Memory HOT 2
- Request for (Very) High Level Status on RAMCloud v. RAFT HOT 1
- How to Deploy RAMCloud? HOT 1
- Using Python Binding HOT 6
- Any progress or testing version for numVClients? HOT 3
- Error while lauching RAMCloud coordinator HOT 1
- Python version for ramcloud bindings HOT 1
- Questions on setting up RAMCloud server and client HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ramcloud.