Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Command line option '7' [from -m755] is not known. #126

Closed
kherge opened this issue Feb 24, 2016 · 6 comments
Closed

E: Command line option '7' [from -m755] is not known. #126

kherge opened this issue Feb 24, 2016 · 6 comments

Comments

@kherge
Copy link

kherge commented Feb 24, 2016

It looks like the install script is bugged?

install.log:

$ umask 022 && mkdir -p "/home/kherrera/.multirust/toolchains/stable/lib/rustlib"
$ echo "3" > "/home/kherrera/.multirust/toolchains/stable/lib/rustlib/rust-installer-version"
install: creating uninstall script at /home/kherrera/.multirust/toolchains/stable/lib/rustlib/uninstall.sh
$ cp /home/kherrera/.multirust/rustup/tmp/tmp-12860-10/rust-1.6.0-x86_64-unknown-linux-gnu/install.sh /home/kherrera/.multirust/toolchains/stable/lib/rustlib/uninstall.sh
install: installing component 'rustc'
$ echo "rustc" >> "/home/kherrera/.multirust/toolchains/stable/lib/rustlib/components"
$ umask 022 && mkdir -p "/home/kherrera/.multirust/toolchains/stable/bin"
install: copying file /home/kherrera/.multirust/toolchains/stable/bin/rust-gdb
$ install -m755 /home/kherrera/.multirust/rustup/tmp/tmp-12860-10/rust-1.6.0-x86_64-unknown-linux-gnu/rustc/bin/rust-gdb /home/kherrera/.multirust/toolchains/stable/bin/rust-gdb
install: error: file creation failed. see logs at '/home/kherrera/.multirust/toolchains/stable/lib/rustlib/install.log'

STDOUT:

multirust: installing toolchain 'stable'
rustup: gpg available. signatures will be verified
rustup: downloading manifest for 'stable'
rustup: downloading toolchain for 'stable'
######################################################################## 100.0%
gpg: Signature made Wed 20 Jan 2016 03:49:50 AM PST using RSA key ID 7B3B09DC
gpg: Good signature from "Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 108F 6620 5EAE B0AA A8DD  5E1C 85AB 96E6 FA1B E5FE
     Subkey fingerprint: C134 66B7 E169 A085 1886  3216 5CB4 A934 7B3B 09DC
rustup: extracting installer
rustup: installing toolchain for 'stable'
install: creating uninstall script at /home/kherrera/.multirust/toolchains/stable/lib/rustlib/uninstall.sh
install: installing component 'rustc'
[sudo] password for kherrera: 
E: Command line option '7' [from -m755] is not known.
install: error: file creation failed. see logs at '/home/kherrera/.multirust/toolchains/stable/lib/rustlib/install.log'
rustup: command failed: sh /home/kherrera/.multirust/rustup/tmp/tmp-12860-10/rust-1.6.0-x86_64-unknown-linux-gnu/install.sh --prefix=/home/kherrera/.multirust/toolchains/stable --disable-ldconfig
rustup: failed to install toolchain
@brson
Copy link
Owner

brson commented Feb 25, 2016

This is kinda surprising. What OS are you on; what does uname -a say?

@kherge
Copy link
Author

kherge commented Feb 25, 2016

Linux [redacted] 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

@brson
Copy link
Owner

brson commented Feb 25, 2016

Hm, that doesn't reveal much. The problem seems to be that install on your system doesnt support-m775as a flag. Perhaps you can tell if it instead supports--mode=775. What doesinstall --version` say?

@kherge
Copy link
Author

kherge commented Feb 25, 2016

After the program exited, I tried to open the install script but the tmp directory does not appear to exist.

The command I run is multirust default stable.

@andrewtj
Copy link
Contributor

@kherge in case it's not clear install is just another executable (like ls, etc). @brson's trying to work out why the install on your system doesn't handle the -m755 flag. The output of install --version, which install and dpkg -S $(which install) might help with that.

@kherge
Copy link
Author

kherge commented Feb 26, 2016

Ah, dammit. There was a script in $PATH with the name install that broke the installer.

@kherge kherge closed this as completed Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants