Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling Python with Checkinstall

I am running checkinstall to compile Python on debian.

I experienced a bunch of errors before this that would cause it to fail due to not being able to create a directory. At that point, I would just mkdir it myself and it would get past this point. But now I get this error:

    copying build/lib.linux-x86_64-3.5/_elementtree.cpython-35m-x86_64-linux-gnu.so -> /usr/local/lib/python3.5/lib-dynload
    error: [Errno 2] No such file or directory
    Makefile:1458: recipe for target 'sharedinstall' failed

Does anyone know of anything I might be doing wrong with checkinstall?

like image 997
Chaos Avatar asked Nov 05 '16 03:11

Chaos


1 Answers

This seemed to work for me:

  1. Use the -n flag on make for your target
  2. pipe to shell script
  3. run checkinstall with that shell script

I ran the following commands:

$ make -n altinstall > altinstall_script.sh
$ chmod +x altinstall_script.sh
$ sudo checkinstall ./altinstall_script.sh
like image 113
Nathan McCoy Avatar answered Oct 09 '22 16:10

Nathan McCoy