solbu / igal2 Goto Github PK
View Code? Open in Web Editor NEWEasy and flexible online image gallery generator
License: GNU General Public License v2.0
Easy and flexible online image gallery generator
License: GNU General Public License v2.0
Thanks for creating this project.
When I first ran the Makefile, using GNU Make on Linux, I got this output and error:
install -d /usr/local/bin
install -m 0755 igal2 /usr/local/bin
ln -si igal2 /usr/local/bin/igal
install -m 0755 utilities/igal2.sh /usr/local/bin
install -d /usr/local/share/man/man1
install: cannot create directory ‘/usr/local/share/man/man1’: File exists
make: *** [Makefile:29: install] Error 1
Commenting out the install -d /usr/local/share/man/man1
line lead to this output and error instead:
install -d /usr/local/bin
install -m 0755 igal2 /usr/local/bin
ln -si igal2 /usr/local/bin/igal
install -m 0755 utilities/igal2.sh /usr/local/bin
#install -d /usr/local/share/man/man1
install -m 0644 igal2.1 /usr/local/share/man/man1
install -d /usr/local/share/igal2
install -m 0644 README ChangeLog COPYING indextemplate2.html slidetemplate2.html tile.png igal2.css directoryline2.html /usr/local/share/igal2
sed -i 's_/usr/local_/usr/local_' /usr/local/bin/igal2 /usr/local/bin/igal2.sh /usr/local/share/man/man1/igal2.1
sed: can't read /usr/local/share/man/man1/igal2.1: Not a directory
make: *** [Makefile:33: install] Error 2
Since I'm using the same default prefix, I commented out the sed
line as well. At that point I was able to successfully install it.
Version was not updated in the .pl file at Tag 3.1
# make install
install -d /usr/local/bin
install -m 0755 igal2 /usr/local/bin
ln -si igal2 /usr/local/bin/igal
install -m 0755 utilities/igal2.sh /usr/local/bin
install -d /usr/local/share/man/man1
install -m 0644 igal2.1 /usr/local/share/man/man1
install -d /usr/local/share/igal2
install -m 0644 README ChangeLog COPYING indextemplate2.html slidetemplate2.html tile.png igal2.css directoryline2.html /usr/local/share/igal2
sed -i 's_/usr/local_/usr/local_' /usr/local/bin/{igal2,igal2.sh} /usr/local/share/man/man1/igal2.1
sed: can't read /usr/local/bin/{igal2,igal2.sh}: No such file or directory
Makefile:25: recipe for target 'install' failed
make: *** [install] Error 2
Looks like you are assuming bash
is the shell, but I guess make
is using just sh
. The fix is simple:
- sed -i 's_/usr/local_$(PREFIX)_' $(DESTDIR)$(BINDIR)/{$(NAME),$(NAME).sh} $(DESTDIR)$(MANDIR)/$(NAME).1
+ sed -i 's_/usr/local_$(PREFIX)_' $(DESTDIR)$(BINDIR)/$(NAME) $(DESTDIR)$(BINDIR)/$(NAME).sh $(DESTDIR)$(MANDIR)/$(NAME).1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.