[DigiKam-users] [digikam] compilation error

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[DigiKam-users] [digikam] compilation error

Ahmad Samir-2

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]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Gilles Caulier-4
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]>:

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]
https://mail.kde.org/mailman/listinfo/digikam-users



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Andrew Goodbody
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
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Gilles Caulier-4
/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

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


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Andrew Goodbody
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
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Noeck
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
Reply | Threaded
Open this post in threaded view
|

Re: [DigiKam-users] [digikam] compilation error

Gilles Caulier-4

2016-02-02 10:16 GMT+01:00 Noeck <[hidden email]>:
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


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users