panda-re/lava

Struggling with Install

benjholla opened this issue · 4 comments

Hi all,

I am struggling with getting LAVA setup, I've tried several times to no avail. The last I heard the releases were tested on Ubuntu 16.04.4, but reading PANDA github page I see 14.04 was the last officially supported version, but I tried with 14.04 and the install for PANDA failed very early. The farthest I have gotten was using Ubuntu 16.04.4 with the steps below on a fresh VM install. What am I missing? Are there any documented steps for installing this aside from run setup.py? What specific OS version should I be trying to install on? Note I also tried the last release build 2.0, but it did not get very far either. The master branch seems to be more stable.

Currently I am getting this error:

[100%] Linking CXX executable fbi
/usr/bin/ld.gold: error: cannot find -lodb
/usr/bin/ld.gold: error: cannot find -lodb-pgsql
...
collect2: error: ld returned 1 exit status
fbi/src/CMakeFiles/fbi.dir/build.make:99: recipe for target 'fbi/src/fbi' failed
make[2]: *** [fbi/src/fbi] Error 1
CMakeFiles/Makefile2:596: recipe for target 'fbi/src/CMakeFiles/fbi.dir/all' failed
make[1]: *** [fbi/src/CMakeFiles/fbi.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

// Download: http://old-releases.ubuntu.com/releases/16.04.4/ubuntu-16.04.4-desktop-amd64.iso
// VM: 8gb ram, 4 processors 2 cores per processor, 50gb hd
// Did not install any updates...

cd ~/Desktop
sudo apt-get install git

// missing pip / colorama required for setup.py
sudo apt install python-pip
pip install colorama

// https://github.com/panda-re/panda#building
sudo add-apt-repository ppa:phulin/panda
sudo apt-get update

// https://askubuntu.com/a/857433/288472
sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update

sudo apt-get build-dep qemu
sudo apt-get install python-pip git protobuf-compiler protobuf-c-compiler libprotobuf-c0-dev libprotoc-dev python-protobuf libelf-dev libcapstone-dev libdwarf-dev python-pycparser llvm-3.3 clang-3.3 libc++-dev

// panda-re/panda#299
sudo apt-get install libwiretap-dev libwireshark-dev

git clone https://github.com/panda-re/lava.git (commit c55bf18)
cd ~/Desktop/lava
python2 setup.py

I just tried to install PANDA from the panda ubuntu install script and that was successful, but then if I run setup.py I get the same error linking fbi.

git clone https://github.com/panda-re/panda.git
cd panda/
cd panda/scripts/
./install_ubuntu.sh

Ok actually I might have made it through to successfully installing LAVA.

I had to add sudo apt-get install odb and then run setup.py again one last time.

Yes ok I can confirm I was able to produce the buggy toy example with this setup. Maybe this issue could be interpreter as "please produce a step by step guide for installing on a specific OS release and release of LAVA". It took me a few hours to get to this point.

I made a pull request for a docs addition with step by step instructions for getting setup, it would help if someone could sanity check my setup. I also made a shareable OVA VM.

OVA made with VMWare is available here: https://drive.google.com/drive/folders/1un2FEr4qM1bCN09PBqMul1AZLDF3nEjf
Username "lava", Password: "lava"

Run cd ~/Desktop/lava and python init-host.py and ./scripts/lava.sh to run the example.