GithubHelp home page GithubHelp logo

solbu / igal2 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 162 KB

Easy and flexible online image gallery generator

License: GNU General Public License v2.0

Makefile 2.02% HTML 8.40% Roff 16.70% CSS 1.41% Shell 0.99% Perl 70.48%

igal2's Issues

`make install` issues

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.

`make install` fails


# 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.