2

I am trying to install gsl on Debian Jessie. I do not have root privileges and I need to install it in my home directory. So I ran:

apt-get source gsl

Once I got the download, I followed the "INSTALL" file, and I went with:

./configure

But I got the message:

config.status: error: cannot find input file: `doc/Makefile.in'

How could I solve this?

Stephen Kitt
  • 434,908

1 Answers1

3

The gsl Debian build rebuilds doc/Makefile.in itself, so you'd need to do that that before running configure. I'd suggest the following, if you want to use the Debian packaging:

If you have the appropriate build-dependencies installed, that will build gsl, and you can then install it manually using make install.

Stephen Kitt
  • 434,908
  • To build dependency ; sudo apt-get build-dep gsl ; If the package does not exists in the local repository it will return an error code. – GAD3R Feb 09 '16 at 17:11
  • 1
    @GAD3R, the OP said he doesn't have root privileges so apt-get build-dep gsl won't help much :-(. – Stephen Kitt Feb 09 '16 at 17:13
  • @StephenKitt I did not modify the debian/rules file.

    But after done ./debian/rules build, ./configure --prefix=$home worked.

    make worked too apparently. Only doing make install I got at some point in the execution: /bin/mkdir: cannot create directory ‘/usr/local/include/gsl’: Permission denied Is it simply because I have not root priviledges? How can I let it know I want to install it in my home directory in such a way it can create the directory without needing priviledges?

    – David Rocher Feb 09 '16 at 18:55
  • ./configure --prefix=$HOME should be enough to do that. I just checked, and on my system performing the steps you give didn't attempt to install anything in /usr/local... Strange... – Stephen Kitt Feb 09 '16 at 21:46
  • Actually thinking about this again, since you ran ./debian/rules build before re-configuring, you should run make clean, make and make installgsl would have been built with a /usr/local prefix, that's why it's trying to install there. – Stephen Kitt Jun 10 '16 at 14:34