All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Bob Pearson <rpearsonhpe@gmail.com>, <linux-rdma@vger.kernel.org>
Subject: Re: Is there a simple way to install rdma-core other than making a package?
Date: Fri, 14 Aug 2020 12:44:11 -0300	[thread overview]
Message-ID: <20200814154411.GO1152540@nvidia.com> (raw)
In-Reply-To: <23cc5656-882f-f8a8-426c-ff065cb0b969@acm.org>

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

      parent reply	other threads:[~2020-08-14 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12  3:41 Is there a simple way to install rdma-core other than making a package? Bob Pearson
2020-08-12  5:57 ` Leon Romanovsky
2020-08-13 14:29   ` Bob Pearson
2020-08-12 17:14 ` Bart Van Assche
2020-08-13 14:29   ` Bob Pearson
2020-08-14 15:44   ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200814154411.GO1152540@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=bvanassche@acm.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=rpearsonhpe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.