Hello guys, I'm trying to compile DigiKam for the first time but when I type "./bootstrap.linux" in the source code file I get the following error:- " ~/dk2$ ./bootstrap.linux ./bootstrap.linux: 14: [: unexpected operator ./bootstrap.linux: 18: [: unexpected operator Syntax: ./bootstrap.linux [--eclipse] Run without arguments to create a Unix Makefile project in a build subdir. Run with '--eclipse' to create an Eclipse IDE project and build source in a parallel directory." _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
seriously... the bootstrap script is a Bash stuff. Your Linux computer is not able to run a bash script ? Gilles Caulier 2016-01-25 8:16 GMT+01:00 Ahmad Samir <[hidden email]>:
_______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
The #! at the top is wrong, it is /bin/sh whereas it should be /bin/bash
Andrew On 01/02/16 21:34, Gilles Caulier wrote: > seriously... the bootstrap script is a Bash stuff. Your Linux computer > is not able to run a bash script ? > > Gilles Caulier > > 2016-01-25 8:16 GMT+01:00 Ahmad Samir <[hidden email] > <mailto:[hidden email]>>: > > > Hello guys, > > I'm trying to compile DigiKam for the first time but when I type > "./bootstrap.linux" in the source code file I get the following error:- > > " ~/dk2$ ./bootstrap.linux > ./bootstrap.linux: 14: [: unexpected operator > ./bootstrap.linux: 18: [: unexpected operator > Syntax: ./bootstrap.linux [--eclipse] > Run without arguments to create a Unix Makefile project in a build > subdir. > Run with '--eclipse' to create an Eclipse IDE project and build > source in a parallel directory." > > any help? > > Thanks > > _______________________________________________ > Digikam-users mailing list > [hidden email] <mailto:[hidden email]> > https://mail.kde.org/mailman/listinfo/digikam-users > > > > > _______________________________________________ > Digikam-users mailing list > [hidden email] > https://mail.kde.org/mailman/listinfo/digikam-users > Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
/bin/sh is a symbolic link to /bin/bash on all linux computers typically... Gilles Caulier 2016-02-01 23:29 GMT+01:00 Andrew Goodbody <[hidden email]>: The #! at the top is wrong, it is /bin/sh whereas it should be /bin/bash _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
It was not on mine, which is Debian. It obviously is not on Ahmad's.
This is not a good assumption to make. If you use bash specific syntax, then just specify bash at the top. It's quicker to fix than to argue about it. Andrew On 02/02/16 05:29, Gilles Caulier wrote: > /bin/sh is a symbolic link to /bin/bash on all linux computers typically... > > Gilles Caulier > > 2016-02-01 23:29 GMT+01:00 Andrew Goodbody <[hidden email] > <mailto:[hidden email]>>: > > The #! at the top is wrong, it is /bin/sh whereas it should be /bin/bash > > Andrew > > On 01/02/16 21:34, Gilles Caulier wrote: > > seriously... the bootstrap script is a Bash stuff. Your Linux > computer > is not able to run a bash script ? > > Gilles Caulier > > 2016-01-25 8:16 GMT+01:00 Ahmad Samir <[hidden email] > <mailto:[hidden email]> > <mailto:[hidden email] > <mailto:[hidden email]>>>: > > > Hello guys, > > I'm trying to compile DigiKam for the first time but when I > type > "./bootstrap.linux" in the source code file I get the > following error:- > > " ~/dk2$ ./bootstrap.linux > ./bootstrap.linux: 14: [: unexpected operator > ./bootstrap.linux: 18: [: unexpected operator > Syntax: ./bootstrap.linux [--eclipse] > Run without arguments to create a Unix Makefile project in > a build > subdir. > Run with '--eclipse' to create an Eclipse IDE project and build > source in a parallel directory." > > any help? > > Thanks > > _______________________________________________ > Digikam-users mailing list > [hidden email] <mailto:[hidden email]> > <mailto:[hidden email] <mailto:[hidden email]>> > https://mail.kde.org/mailman/listinfo/digikam-users > > > > > _______________________________________________ > Digikam-users mailing list > [hidden email] <mailto:[hidden email]> > https://mail.kde.org/mailman/listinfo/digikam-users > > _______________________________________________ > Digikam-users mailing list > [hidden email] <mailto:[hidden email]> > https://mail.kde.org/mailman/listinfo/digikam-users > > > > > _______________________________________________ > Digikam-users mailing list > [hidden email] > https://mail.kde.org/mailman/listinfo/digikam-users > Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
In reply to this post by Gilles Caulier-4
Hi,
> /bin/sh is a symbolic link to /bin/bash on all linux computers typically... This is often the case, but nothing one can rely on. In general bash is a superset of sh and if bash syntax is used (like [ ... ]) and thus bash is required and not just sh, it makes sense to use #!/bin/bash. Cheers, Joram _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Fixed : Gilles Caulier 2016-02-02 10:16 GMT+01:00 Noeck <[hidden email]>: Hi, _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Free forum by Nabble | Edit this page |