-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Description
When running ./ffrouting-install.sh following lab instructions, compilation fails with the following message
/usr/local/include/rtrlib/aspa/aspa.h:24:10: fatal error: rtrlib/lib/alloc_utils_private.h: No such file or directory
#include "rtrlib/lib/alloc_utils_private.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:10688: recipe for target 'bgpd/bgpd_bgpd_rpki_la-bgp_rpki.lo' failedWorkaround
I was able to work around the issue by executing the following script to install rtrlib
# 1. Clean up any existing RTRlib installation
sudo rm -rf /usr/local/include/rtrlib
sudo rm -f /usr/local/lib/librtr*
sudo rm -f /usr/local/lib/pkgconfig/rtrlib.pc
sudo ldconfig
# 2. Rebuild RTRlib with proper installation
cd /tmp
rm -rf rtrlib
git clone https://github.com/rtrlib/rtrlib/
cd rtrlib
git checkout v0.8.0 # Use stable version
mkdir build; cd build
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_SHARED_LIBS=ON \
..
make
sudo make install
sudo ldconfig
# 3. Manually copy the missing private header if needed
if [ ! -f /usr/local/include/rtrlib/lib/alloc_utils_private.h ]; then
sudo mkdir -p /usr/local/include/rtrlib/lib/
sudo cp ../rtrlib/lib/alloc_utils_private.h /usr/local/include/rtrlib/lib/ 2>/dev/null || echo "Header not found in source"
fiAfter that I executed ./ffrouting-install.sh again and this time the compilation completed successfully
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels