[gnome-db] /usr/bin/env: perl -w: No such file or directory



Hi,
I was just attempting again to compile libgda 2.99.3 for win32 using MinGW/mSys.
This time I ran into the following compilation error (more output below):
    /usr/bin/env: perl -w: No such file or directory
From what I found in Google this typically comes from scripts that start with:
    #!/usr/bin/env perl -w
but really should start with:
    #!/usr/bin/env - perl -w
because otherwise the -w is treated as part of the command to invoke.
For now I worked my way around this with:
    ln -s `which perl.exe` '/usr/local/bin/perl -w'
but I have to admit this is a very dirty solution.
However I could not find any files containing "perl -w", so I guess it's something generated on the fly.
Do you know where this could be fixed?
Regards
    Brecht
 
make[2]: Entering directory `/home/Brecht/libgda-2.99.3/libgda'
( cd . && glib-mkenums \
                --fhead "#include <libgda/libgda.h>\n" \
                --fhead "#include <glib-object.h>" \
                        --fprod "\n/* enumerations from \"@filename \" */" \
                --vhead "GType\n enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G Type@Value values[] = {"      \
                --vprod "      { @VALUENAME@, \"@VALUENAME \", \"@valuenick \" }," \
                --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_ type@_register_static (\"@EnumName \", values);\n  }\n  return etype;\n}\n" \
        gda-blob-op.h gda-client.h gda-column.h gda-column-index.h gda-command.h gda-config.h gda-connection-event.h gda-connection.h gda-connection-private.h gda-data-handler.h gda-data-model-array.h gda-data-model-row.h gda-data-model.h gda-data-model-extra.h gda-data-model-filter-sql.h gda-data-model-hash.h gda-data-model-import.h gda-data-model-index.h gda-data-model-iter.h gda-data-model-private.h gda-data-model-query.h gda-data-access-wrapper.h gda-data-proxy.h gda-decl.h gda-dict-aggregate.h gda-dict-constraint.h gda-dict-database.h gda-dict-field.h gda-dict-function.h gda-dict.h gda-dict-private.h gda-dict-reg-queries.h gda-dict-reg-types.h gda-dict-reg-aggregates.h gda-dict-reg-functions.h gda-dict-table.h gda-dict-type.h gda-entity-field.h gda-entity.h gda-enums.h gda-graphviz.h gda-log.h gda-marshal.h gda-object.h gda-object-ref.h gda-parameter.h gda-parameter-list.h gda-parameter-util.h gda-quark-list.h gda-query-condition.h gda-query-field-agg.h gda-query-field-all.h gda-query-field-field.h gda-query-field-func.h gda-query-field.h gda-query-field-value.h gda-query.h gda-query-join.h gda-query-object.h gda-query-parsing.h gda-query-private.h gda-query-target.h gda-referer.h gda-renderer.h gda-row.h gda-data-model-filter-sql.h gda-server-operation.h gda-server-provider.h gda-server-provider-extra.h gda-server-provider-private.h gda-threader.h gda-transaction-status.h gda-transaction-status-private.h gda-util.h gda-value.h gda-xml-storage.h libgda.h  ) > tmp-gda-enum-types.c \
&& (cmp -s tmp-gda-enum-types.c gda-enum-types.c || cp tmp-gda-enum-types.c gda-enum-types.c ) \
&& rm -f tmp-gda-enum-types.c \
&& echo timestamp > s-enum-types-c
/usr/bin/env: perl -w: No such file or directory
make[2]: *** [s-enum-types-c] Error 127
make[2]: Leaving directory `/home/Brecht/libgda-2.99.3/libgda'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Brecht/libgda-2.99.3/libgda'
make: *** [all-recursive] Error 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]