You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
failed to open lockfile: [13] Permission denied #23360
I am getting this error as well. I am running this on Fedora core 21. Everything is find until I try to run make install. Running this as root does not help
thread '<unnamed>' panicked at 'failed to open lockfile: Permission denied (os error 13)', /home/ciaran/Documents/rust/rust/src/librustdoc/flock.rs:124 thread '<main>' panicked at 'child thread None panicked', /home/ciaran/Documents/rust/rust/src/libstd/thread/mod.rs:726 /home/ciaran/Documents/rust/rust/mk/docs.mk:261: recipe for target 'doc/libc/index.html' failed make[1]: *** [doc/libc/index.html] Error 101 make[1]: Leaving directory '/home/ciaran/Documents/rust/rust' /home/ciaran/Documents/rust/rust/mk/install.mk:22: recipe for target 'install' failed make: *** [install] Error 2
It's now working with sudo. The error seems to result from lacking privileges to the /usr/local/share/doc/rust/html directory.
install: WARNING: unable to remove directory /usr/local/share/doc/rust/html
override rw-r--r-- root/admin for /usr/local/lib/rustlib/manifest-rust-docs? yes
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rust-docs'
install: backing up existing file at /usr/local/share/doc/rust/html
mv: rename /usr/local/share/doc/rust/html to /usr/local/share/doc/rust/html.old: Permission denied
install: error: failed to back up /usr/local/share/doc/rust/html. see logs at '/usr/local/lib/rustlib/install.log'
make: *** [install] Error 1
It's fine by me if you close this issue. Not sure if the error above has to do with my broken setup (since I've tried to build rust the first time with sudo which would've lead to the lacking privileges) or if this is an issue for other people as well.
I am closing this as an old issue with no actionable steps. If anyone can reproduce this issue, please reopen with concrete steps to reproduce. It seems the primary issue here is that make install didn't/doesn't work without sudo, which seems fine to me, since that's common across many programs AFAIK.
Activity
cad106uk commentedon Mar 27, 2015
I am getting this error as well. I am running this on Fedora core 21. Everything is find until I try to run
make install. Running this as root does not helpthread '<unnamed>' panicked at 'failed to open lockfile: Permission denied (os error 13)', /home/ciaran/Documents/rust/rust/src/librustdoc/flock.rs:124 thread '<main>' panicked at 'child thread None panicked', /home/ciaran/Documents/rust/rust/src/libstd/thread/mod.rs:726 /home/ciaran/Documents/rust/rust/mk/docs.mk:261: recipe for target 'doc/libc/index.html' failed make[1]: *** [doc/libc/index.html] Error 101 make[1]: Leaving directory '/home/ciaran/Documents/rust/rust' /home/ciaran/Documents/rust/rust/mk/install.mk:22: recipe for target 'install' failed make: *** [install] Error 2tomleb commentedon Mar 29, 2015
Same happened to me, any idea?
cad106uk commentedon Mar 30, 2015
This problem is now fixed for me. The sha f002640 on the beta branch now works for me.
Thanks for the fix.
iluuu1994 commentedon Apr 17, 2015
The beta branch must've been merged into master but the issue persists for me...
tomleb commentedon Apr 24, 2015
First running 'make' alone and then running 'sudo make install' solved it for me.
steveklabnik commentedon Dec 18, 2015
Is this still a problem?
iluuu1994 commentedon Dec 18, 2015
@steveklabnik Let me try
iluuu1994 commentedon Dec 19, 2015
It's now working with
sudo. The error seems to result from lacking privileges to the /usr/local/share/doc/rust/html directory.It's fine by me if you close this issue. Not sure if the error above has to do with my broken setup (since I've tried to build rust the first time with
sudowhich would've lead to the lacking privileges) or if this is an issue for other people as well.Mark-Simulacrum commentedon Apr 29, 2017
I am closing this as an old issue with no actionable steps. If anyone can reproduce this issue, please reopen with concrete steps to reproduce. It seems the primary issue here is that
make installdidn't/doesn't work without sudo, which seems fine to me, since that's common across many programs AFAIK.Merge pull request rust-lang#23360 from Wilfred/log_discover_dir