Running '#make install' from path with spaces fails on debian

Issue #810 wontfix
Max Danielsson
created an issue

After building love 0.9.0 without errors, running make install from a path where one of the folder contains a space fails.

Moving the building folder to another path without spaces and rerunning make install prevented the error from reoccurring,

Note the following error "/bin/bash: /home/a/Downloads/Chrome: No such file or directory" hints at the space being the issue.

a@computer:~/Downloads/Chrome Downloads/love-0.9.0$ sudo make install

Making install in src
make[1]: Entering directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
make[2]: Entering directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
make[3]: Entering directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
 /bin/mkdir -p '/usr/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c '/usr/lib'
libtool: install: /usr/bin/install -c .libs/ /usr/lib/
libtool: install: (cd /usr/lib && { ln -s -f || { rm -f && ln -s; }; })
libtool: install: (cd /usr/lib && { ln -s -f || { rm -f && ln -s; }; })
libtool: install: /usr/bin/install -c .libs/liblove.lai /usr/lib/
libtool: install: /usr/bin/install -c .libs/liblove.a /usr/lib/liblove.a
libtool: install: chmod 644 /usr/lib/liblove.a
libtool: install: ranlib /usr/lib/liblove.a
/bin/bash: /home/a/Downloads/Chrome: No such file or directory
make[3]: *** [install-libLTLIBRARIES] Error 127
make[3]: Leaving directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/a/Downloads/Chrome Downloads/love-0.9.0/src'
make: *** [install-recursive] Error 1

Comments (2)

  1. Anonymous

    The path should read:

    /home/a/Downloads/Chrome\ Downloads/....

    Notice the backslash after chrome? It's an escape character to handle the space in the filepath name.

  2. Log in to comment