I am trying to install BerkeleyDB STL . I ran the following code to download n install the same
curl -OL http://download.oracle.com/berkeley-db/db-6.2.23.NC.tar.gz
tar xf db-6.2.23.NC.tar.gz
cd db-6.2.23.NC/build_unix
../dist/configure --prefix=$HOME --enable-stl
make
make install
then for further installation of my application i need to tell R where is BerkeleyDB STL, for which I did as stated by the manual :
CPPFLAGS=-I${HOME}/include
LDFLAGS=-L${HOME}/lib -Wl,-rpath=${HOME}/lib
But I get the following error while running the second command :
bash: -Wl,-rpath=/home/mayankmodi/lib: No such file or directory
even though the directory structure is
.
├── bin
├── env
├── include
├── lib
└── Videos
*I have deleted most of my folders to make it easy to spot lib directory
QUESTION: I need to understand the implication of
LDFLAGS=-L${HOME}/lib -Wl,-rpath=${HOME}/lib