Commit 96e741c5 authored by Guoze's avatar Guoze
Browse files

Add install_ramclod.sh to fixed the mistake in install.sh

parent ac892e73
......@@ -27,6 +27,11 @@ cd ramcloud
sudo su
./install.sh
```
If it doesn't finish the installing of RAMCloud, please input the command as follow.
```bash
source /etc/profile
./install_ramcloud.sh
```
## 3. Update the PATH
```bash
source /etc/profile
......
#!/bin/bash
#This is a script to install ramcloud.
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
clear
CURRENT_DIR=$(pwd)
PRPCESSOR_NUM=$(getconf _NPROCESSORS_ONLN)
echo "[INFO] Begin to install RAMCloud...."
cd $CURRENT_DIR
make clean
make -j $PRPCESSOR_NUM DEBUG=no install INSTALL_DIR=/usr/local
sudo echo "/usr/local/lib/ramcloud/" > /etc/ld.so.conf.d/ramcloud.conf
sudo ldconfig
sudo cp src/*.h /usr/local/include/ramcloud/
echo "[OK] Install RAMCloud Done!"
exit 0
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment