Re: Is there a simple way to install rdma-core other than making a package?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 12, 2020 at 10:14:17AM -0700, Bart Van Assche wrote:
> On 2020-08-11 20:41, Bob Pearson wrote:
> > There doesn't seem to be a documented way to make install rdma-core, at least in the README file. However trying the obvious
> > 
> > $ bash build.sh
> > $ cd build
> > $ sudo make install
> > 
> > seems to work, almost. After a few 100 lines of promising output I get
> > 
> > CMake Error at librdmacm/cmake_install.cmake:76 (file):
> >   file INSTALL cannot find
> >   "/home/rpearson/src/rdma-core-git/build/lib/librdmacm.so.1.3.31.0": No such
> >   file or directory.
> 
> This is how I do this myself:
> 
> export EXTRA_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_WERROR=1" &&
>     mkdir -p build &&
>     cd build &&
>     cmake -G Ninja CFLAGS="-O0 -g" -DCMAKE_INSTALL_PREFIX=/usr .. &&
>     ninja &&
>     ninja install

I really discourage using 'make install' - rdma-core is complicated
and adds a lot of files to the system. It is very hard to undo 'make
install'.

For most things just set LD_LIBRARY_PATH=build/lib and just forget
about installing

If you do have to install use the cbuild package builders and install
the RPMs. At least that can be undone.

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux