Bug #9010

./configure --prefix= cannot handle directories with spaces

Added by Hal Brodigan 6 months ago. Updated 3 months ago.

[ruby-core:57793]
Status:Assigned
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:-
Target version:-
ruby -v: Backport:

Description

It appears that the linking task fails when the --prefix value contains spaces.

Steps to Reproduce:

  1. ./configure --prefix="$HOME/foo bar"
  2. make

Expected Result: success
Actual Result:

make[2]: Entering directory /home/hal/src/ruby-2.0.0-p247'
linking ruby
gcc: error: bar/lib: No such file or directory
gcc: error: bar/lib: No such file or directory
make[2]: *** [ruby] Error 1
make[2]: Leaving directory
/home/hal/src/ruby-2.0.0-p247'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hal/src/ruby-2.0.0-p247'
make: *** [build-ext] Error 2

History

#1 Updated by Tomoyuki Chikanaga 6 months ago

  • Tracker changed from Backport to Bug
  • Project changed from Backport200 to ruby-trunk
  • Status changed from Open to Assigned
  • Assignee set to Nobuyoshi Nakada
  • Priority changed from High to Normal

#2 Updated by Hans Mackowiak 6 months ago

maybe its a problem with your shell? on Mac i am currently using it works

hm or try if you can build ruby-trunk.

#3 Updated by Hal Brodigan 3 months ago

Tested against r44682 on bash 4.2.5 and got the same error:

$ ./configure --prefix="$HOME/foo bar"
$ make
...
linking static-library libruby-static.a
verifying static-library libruby-static.a
linking ruby
gcc: error: bar/lib: No such file or directory
gcc: error: bar/lib: No such file or directory
make[2]: *** [ruby] Error 1
make[2]: Leaving directory `/vault/0/src/ruby/trunk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/vault/0/src/ruby/trunk'
make: *** [build-ext] Error 2

Also available in: Atom PDF