Skip to content

Can't install on cygwin #128

@xpusostomos

Description

@xpusostomos

I get an error installing DBD::Pg on cygwin...

$ export POSTGRES_INCLUDE="c:/Program Files/PostgreSQL/15/include"

chris@P14s-Win ~/GITW/cgi
$ ls "$POSTGRES_INCLUDE"
autosprintf.h        cpl_multiproc.h     ecpgerrno.h     libxml              ogrsf_frmts.h        server
cpl_atomic_ops.h     cpl_odbc.h          ecpglib.h       libxslt             openssl              sql3types.h
cpl_auto_close.h     cpl_port.h          ecpgtype.h      localcharset.h      pg_config.h          sqlca.h
cpl_config.h         cpl_progress.h      evdns.h         lz4.h               pg_config_ext.h      sqlda.h
cpl_config_extras.h  cpl_quad_tree.h     event.h         lz4frame.h          pg_config_manual.h   sqlda-compat.h
cpl_conv.h           cpl_spawn.h         evhttp.h        lz4hc.h             pg_config_os.h       sqlda-native.h
cpl_csv.h            cpl_string.h        evrpc.h         memdataset.h        pgtypes.h            unicode
cpl_error.h          cpl_time.h          evutil.h        ogr_api.h           pgtypes_date.h       uuid.h
cpl_hash_set.h       cpl_virtualmem.h    iconv.h         ogr_core.h          pgtypes_error.h      vrtdataset.h
cpl_http.h           cpl_vsi.h           informix        ogr_feature.h       pgtypes_interval.h   zconf.h
cpl_json.h           cpl_vsi_error.h     internal        ogr_featurestyle.h  pgtypes_numeric.h    zlib.h
cpl_list.h           cpl_vsi_virtual.h   libcharset.h    ogr_geocoding.h     pgtypes_timestamp.h  zstd.h
cpl_minixml.h        cplkeywordparser.h  libintl.h       ogr_geometry.h      postgres_ext.h
cpl_minizip_ioapi.h  DOCBparser.h        libpq           ogr_p.h             pthread.h
cpl_minizip_unzip.h  ecpg_config.h       libpq-events.h  ogr_spatialref.h    rawdataset.h
cpl_minizip_zip.h    ecpg_informix.h     libpq-fe.h      ogr_srs_api.h       sched.h
cpan
install DBD::Pg
........
gcc: warning: Files/PostgreSQL/15/include: linker input file unused because linking not done
gcc: error: Files/PostgreSQL/15/include: linker input file not found: No such file or directory
make: *** [Makefile:358: Pg.o] Error 1
  TURNSTEP/DBD-Pg-3.18.0.tar.gz
  /usr/bin/make -- NOT OK
Failed during this command:
 TURNSTEP/DBD-Pg-3.18.0.tar.gz                : make NO

Since postgres is installed in C:/Program Files, a path with a space in it, and the error says "gcc warning Files/PostgreSQL/15/include"... it looks like a classic case of shell variable not quoted, or something like that. BTW, C:/Program Files is the default install location for Postgres on Windows. I would imagine perhaps the error occurs on UNIX too if you happened to have it installed in a path with a space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions