I tried to https://www.vim.org/git.php so I performed these commands:
git clone https://github.com/vim/vim.git
cd vim
cd src
make
su rootuser
sudo make install
But I get this permission denied error at the last step: mv: cannot move 'tags' to 'tags.dist': Permission denied.
Not sure what I'm doing wrong or what tags.dist is referring to.
No error during build
8.2.3941
GNU bash, version 4.4.20(1)-release on Ubuntu machine:
> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
Full output of `sudo make install` command: $ sudo make install if test -f /usr/local/bin/vim; then \ mv -f /usr/local/bin/vim /usr/local/bin/vim.rm; \ rm -f /usr/local/bin/vim.rm; \ fi cp vim /usr/local/bin strip /usr/local/bin/vim chmod 755 /usr/local/bin/vim cp vimtutor /usr/local/bin/vimtutor chmod 755 /usr/local/bin/vimtutor /bin/sh ./installman.sh install /usr/local/share/man/man1 "" /usr/local/share/vim /usr/local/share/vim/vim82 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim installing /usr/local/share/man/man1/vim.1 installing /usr/local/share/man/man1/vimtutor.1 installing /usr/local/share/man/man1/vimdiff.1 installing /usr/local/share/man/man1/evim.1 cd ../runtime/doc; if test -z "" -a -f tags; then \ mv -f tags tags.dist; fi mv: cannot move 'tags' to 'tags.dist': Permission denied Makefile:2431: recipe for target 'installrtbase' failed make: *** [installrtbase] Error 1
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
What happens if you run this shell command:
$ mv -f tags tags.dist
While the current directory is runtime/doc/.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I can't make this command work:
$ su rootuser
No passwd entry for user 'rootuser'
And it should not be necessary considering you use sudo(8) in the next sudo make install command.
Try again without su rootuser.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
su rootuser
This command is not mentioned on https://www.vim.org/git.php and is also not required.
sudo make install
Not sure why this fails. mv -f tags tags.dist Please check the output of ls -l tags in your cloned runtime/doc folder.
Also, I would recommend to compile using ./configure <additional_args> --prefix=/home/user/local so that you do not need to run sudo make install but just make install and it will the be installed in your local /home/usr/local directory.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
As my own user kaddkaka, I can perform mv -f tags tags.dist, but this user does not have super user privileges, thats why I change to a user that does have super user privileges, in this case rootuser.
As rootuser, mv -f tags tags.dist gives permission denied.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I cloned the repo as user kaddkaka and then switched to rootuser when building to allow for the sudo command. But perhaps this is not OK. I'm guessing I have to clone the repo with the same user with SUDO privileges. Thanks
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
As rootuser, mv -f tags tags.dist gives permission denied.
That doesn't make sense. The root user can always write in any directory (perhaps with the exception of apparmor or selinux). Please show the output of ls -la in the runtime folder.
I'm guessing I have to clone the repo with the same user with SUDO privileges.
no, you shouldn't neither build nor clone as superuser. Just for installation this is needed to be able to write into system protected folders. But for a single user account, I would even then recommend to install into your home directory.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
> ls -la tags*
-rw-r--r-- 1 kaddkaka users 362485 Dec 28 12:17 tags.dist
-rw-r--r-- 1 kaddkaka users 40278 Dec 28 12:17 tagsrch.txt
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I assume that "rootuser" is not root, but a user that has privileges to become root and use "sudo".
Yes, you need to build as "rootuser", otherwise there are generated files owned by "kaddkaka" that can't be changed by "rootuser".
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Closed #9432.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I assume that "rootuser" is not root, but a user that has privileges to become root and use "sudo". Yes, you need to build as "rootuser", otherwise there are generated files owned by "kaddkaka" that can't be changed by "rootuser".
Yes that's correct. If I git clone as kaddkaka and then switch to user rootuser and do
cd src
sudo make
It fails already on the sudo make step:
vim/src$ sudo make
Makefile:304: auto/config.mk: No such file or directory
rm -f auto/config.cache
if test "X" != "Xclean" \
-a "X" != "Xdistclean" \
-a "X" != "Xautoconf" \
-a "X" != "Xreconfig"; then \
GUI_INC_LOC="" GUI_LIB_LOC="" \
CC="" CPPFLAGS="" CFLAGS="" \
LDFLAGS="" srcdir="." \
./configure \
\
\
\
\
\
\
\
\
\
\
\
\
; \
fi
auto/configure: line 2288: auto/config.log: Permission denied
auto/configure: line 2298: auto/config.log: Permission denied
Makefile:2080: recipe for target 'auto/config.mk' failed
make: *** [auto/config.mk] Error 1
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@vim-ml As per Bram's reply, I need to do make as a user that has privileges to- use sudo for the sudo make install step.
I'm sorry about the sudo make, I edited my post to make which is the command that I did run.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.![]()