Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What files did `make install` copy, and where?

Is there a way to get a list of filenames/paths that make install copies to the filesystem? Some packages come with a MANIFEST file, but not the ones that I am working with.

like image 736
Ryan R. Rosario Avatar asked Oct 01 '09 21:10

Ryan R. Rosario


People also ask

Where does make install install to?

By default, ' make install ' installs the package's commands under /usr/local/bin , include files under /usr/local/include , etc. You can specify an installation prefix other than /usr/local by giving configure the option --prefix= prefix , where prefix must be an absolute file name.

How do you see what make install does?

The files which are installed are controlled by the install target in the Makefile being used. Your best bet is to open the Makefile and search for 'install:' - from there you can see what files will be copied out to your system.

What happens after make install?

The last step – make install – copies the binaries into their final locations, might delete intermediates, and does any other step the make step didn't catch. make clean is a good idea to run if you want to try compiling all over again. This doesn't usually destroy the makefile/configuration.

What is configure make and make install?

Show activity on this post. ./configure runs a script named "configure" in the current directory. make runs the program "make" in your path, and make install runs it again with the argument "install". Generally, the "configure" script was generated by a collection of programs known as "autotools".


1 Answers

I was just investigating this myself while compiling a custom version of QEMU. I used the following method to work out what was installed and where (as well as using it as a basis for a .deb file):

mkdir /tmp/installer
./configure --target-list=i386-softmmu
make
sudo make install DESTDIR=/tmp/installer
cd /tmp/installer
tree .

Tree is a utility that recursively displays the contents of a directory in a visually appealing manner - sudo apt-get install tree for Debian / Ubuntu users

Hope that helps someone... it took me a bit of poking around to nut it out, but I found it quite a useful way of visualising what was going on.

like image 189
Steve Avatar answered Oct 11 '22 23:10

Steve