Search code examples
linuxsqlplusrlwrap

Installing rlwrap on linux - without root permission


I am trying to install rlwrap. I do not have root permissions.

I did the following to install rlwrap using some steps mentioned online :

gunzip rlwrap*.gz
tar -xvf rlwrap*.tar
cd rlwrap
./configure
make
make check
make install

But in the last step when I do "make install", I get an error

/usr/bin/install: cannot create regular file `/usr/local/bin/rlwrap': Read-only file system
make[2]: *** [install-binPROGRAMS] Error 1

I tried "sudo make install", I still get the same error.

What are the options now to install rlwrap?

Thanks


Solution

  • In order to install it without root permissions, you need to configure it as follows:

    ./configure --prefix=$HOME
    

    after which 'make install' will install rlwrap in $HOME/bin

    (Above info is from INSTALL file in root folder of rlwrap)