Rustup script install fails to complete if man1 already exists in /usr/local/share/man. This is on Ubuntu 14.04 x64.
rustup: CFG_CURL := /usr/bin/curl (7.37.1)
rustup:
rustup: processing sh args
rustup:
rustup: CFG_PREFIX :=
rustup:
rustup: validating sh args
rustup:
rustup: host triple: x86_64-unknown-linux-gnu
rustup: downloading rust installer
... etc ..
install: looking for install programs
install: found mkdir
... etc ...
install:
install: processing ./rustup-tmp-install/rust-nightly-x86_64-unknown-linux-gnu/install.sh args
install:
install: CFG_PREFIX := /usr/local
install: CFG_LIBDIR := /usr/local/lib
install: CFG_MANDIR := /usr/local/share/man
install:
install: validating ./rustup-tmp-install/rust-nightly-x86_64-unknown-linux-gnu/install.sh args
install:
install: verifying platform can run binaries
install: verifying destination is writable
install: verifying destination is not the same as source
install: /usr/local/lib/librustrt-4e7c5e5c.so
... etc ...
install: /usr/local/lib/libgetopts-4e7c5e5c.so
install: /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-4e7c5e5c.rlib
... etc ...
install: /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustdoc-4e7c5e5c.so
install: /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmorestack.a
install: /usr/local/lib/libtime-4e7c5e5c.so
install: /usr/local/lib/librustdoc-4e7c5e5c.so
mkdir: cannot create directory ‘/usr/local/share/man/man1’: File exists
install: error: directory creation failed
rustup: error: failed to install Rust
Currently I have man1 -> /usr/local/haskell/ghc-7.8.3-x86_64/share/man/man1/ghc.1 in that directory
I think this is more likely mis-behavior on the part of the Haskell Platform installer (or the way I ran it). I removed the man1 symlink & was able to run rustup fine. Then I just symlinked ghc.1 into the man1 subdir.
Likewise confirmed Haskell Platform installer on Ubuntu causes the issues - problem solved by running following -
sudo unlink /usr/local/share/man/man1
sudo unlink /usr/local/share/doc
Most helpful comment
Likewise confirmed Haskell Platform installer on Ubuntu causes the issues - problem solved by running following -
sudo unlink /usr/local/share/man/man1
sudo unlink /usr/local/share/doc