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

Missing vim folder in plumed executable folder #538

Closed
carajillu opened this issue Dec 21, 2019 · 1 comment
Closed

Missing vim folder in plumed executable folder #538

carajillu opened this issue Dec 21, 2019 · 1 comment
Assignees
Milestone

Comments

@carajillu
Copy link

carajillu commented Dec 21, 2019

Hi all,

This seems like a very minor bug. When I try to do a fresh installation of plumed, the first time it fails because it doesn't find a folder called vim inside the folder where the program is installed. This is teh last bit of the installation output, where the error appears:

if test -f ../../vim/scripts.vim ; then cp ../../vim/scripts.vim "/home/joan/local/plumed2_carajillu/lib/plumed/vim/" ; fi
cp: cannot create regular file '/home/joan/local/plumed2_carajillu/lib/plumed/vim/': Not a directory
Makefile:247: recipe for target 'install' failed
make[2]: *** [install] Error 1
make[2]: Leaving directory '/home/joan/github/plumed2_carajillu/src/lib'
Makefile:11: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/joan/github/plumed2_carajillu/src'
Makefile:35: recipe for target 'install' failed
make: *** [install] Error 2

Then I manually create /home/joan/local/plumed2_carajillu/lib/plumed/vim/ and run the installation again and it installs it fine. A test with driver runs fine too.

Thanks,
Joan

@GiovanniBussi
Copy link
Member

@carajillu thanks for reporting! This is a bit strange. If you look at these three lines

plumed2/src/lib/Makefile

Lines 308 to 310 in c090f11

if test -d ../../vim/syntax ; then mkdir -p "$(DESTDIR)$(libdir)/$(program_name)" && cd ../../ && tar cf - vim/syntax | tar xf - -C "$(DESTDIR)$(libdir)/$(program_name)/" ; fi
if test -d ../../vim/help ; then mkdir -p "$(DESTDIR)$(libdir)/$(program_name)" && cd ../../ && tar cf - vim/help | tar xf - -C "$(DESTDIR)$(libdir)/$(program_name)/" ; fi
if test -f ../../vim/scripts.vim ; then cp ../../vim/scripts.vim "$(DESTDIR)$(libdir)/$(program_name)/vim/" ; fi

The directory should be created when the help and or syntax directories are copied with tar. Anyway, it is easy to add a mkdir in the previous line, I will make it.

@GiovanniBussi GiovanniBussi self-assigned this Jan 8, 2020
@GiovanniBussi GiovanniBussi modified the milestones: Version 2.7, Version 2.6 Jan 8, 2020
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

2 participants