[Haskell-cafe] Troubles with PostgreSQL, Persistent and Apple M1

Branimir Maksimovic branimir.maksimovic at gmail.com
Tue Sep 21 22:08:33 UTC 2021

Seems builds no problem…
To start postgresql:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/postgresql/bin/postgres -D /opt/homebrew/var/postgres
bmaxa at Branimirs-Air ~ % cabal install persistent-postgresql
Warning: The package list for 'hackage.haskell.org' is 69 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: The package list for 'hackage.haskell.org' is 69 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - Only-0.1 (lib) (requires build)
 - blaze-builder- (lib) (requires download & build)
 - base-compat-0.11.2 (lib) (requires build)
 - base-orphans-0.8.4 (lib) (requires build)
 - base64-bytestring- (lib) (requires download & build)
 - bytestring-builder- (lib) (requires download & build)
 - dlist-1.0 (lib) (requires build)
 - data-default-class- (lib:data-default-class) (requires build)
 - hsc2hs-0.68.7 (exe:hsc2hs) (requires build)
 - hashable- (lib) (requires build)
 - old-locale- (lib) (requires download & build)
 - lift-type- (lib) (requires download & build)
 - monad-loops-0.4.3 (lib) (requires download & build)
 - indexed-traversable-0.1.1 (lib) (requires build)
 - unliftio-core- (lib) (requires download & build)
 - integer-logarithms- (lib) (requires build)
 - unix-compat-0.5.3 (lib) (requires download & build)
 - primitive- (lib) (requires build)
 - path-pieces-0.2.1 (lib) (requires download & build)
 - silently- (lib) (requires download & build)
 - split- (lib) (requires download & build)
 - splitmix- (lib) (requires build)
 - stm-chans- (lib:stm-chans) (requires download & build)
 - easy-file-0.2.2 (lib:easy-file) (requires download & build)
 - auto-update-0.1.6 (lib) (requires download & build)
 - utf8-string-1.0.2 (lib) (requires download & build)
 - tagged- (lib) (requires build)
 - th-abstraction- (lib) (requires build)
 - transformers-compat-0.6.6 (lib) (requires build)
 - zlib- (lib) (requires download & build)
 - blaze-markup- (lib) (requires download & build)
 - base-compat-batteries-0.11.2 (lib) (requires build)
 - cookie-0.4.5 (lib) (requires download & build)
 - postgresql-libpq- (lib:postgresql-libpq) (requires download & build)
 - network- (lib:network) (requires download & build)
 - time-compat-1.9.6 (lib) (requires build)
 - async-2.2.3 (lib) (requires build)
 - unordered-containers- (lib) (requires build)
 - data-fix-0.3.1 (lib) (requires build)
 - case-insensitive- (lib) (requires download & build)
 - old-time- (lib:old-time) (requires download & build)
 - vector- (lib) (requires build)
 - scientific- (lib) (requires build)
 - resourcet- (lib) (requires download & build)
 - random-1.2.0 (lib) (requires build)
 - string-conversions- (lib) (requires download & build)
 - distributive- (lib) (requires build)
 - th-lift-0.8.2 (lib) (requires download & build)
 - transformers-base- (lib) (requires download & build)
 - blaze-html- (lib) (requires download & build)
 - typed-process- (lib) (requires download & build)
 - unliftio-0.2.18 (lib) (requires download & build)
 - http-types-0.12.3 (lib) (requires download & build)
 - unix-time-0.4.7 (lib:unix-time) (requires download & build)
 - vector-algorithms- (lib) (requires build)
 - attoparsec-0.14.1 (lib) (requires build)
 - streaming-commons- (lib) (requires download & build)
 - uuid-types-1.0.5 (lib) (requires build)
 - comonad-5.0.8 (lib) (requires build)
 - th-lift-instances-0.1.18 (lib) (requires download & build)
 - monad-control- (lib:monad-control) (requires download & build)
 - fast-logger-3.0.5 (lib) (requires download & build)
 - mono-traversable- (lib) (requires download & build)
 - attoparsec-iso8601- (lib) (requires download & build)
 - bifunctors-5.5.11 (lib) (requires build)
 - resource-pool- (lib) (requires download & build)
 - lifted-base- (lib) (requires download & build)
 - conduit- (lib) (requires download & build)
 - http-api-data-0.4.3 (lib) (requires download & build)
 - assoc-1.0.2 (lib) (requires build)
 - conduit-extra-1.3.5 (lib) (requires download & build)
 - these- (lib) (requires build)
 - monad-logger-0.3.36 (lib) (requires download & build)
 - strict- (lib) (requires build)
 - aeson- (lib) (requires build)
 - postgresql-simple-0.6.4 (lib) (requires download & build)
 - persistent- (lib) (requires download & build)
 - persistent-postgresql- (lib) (requires download & build)
Downloading  old-locale-
Starting     base-orphans-0.8.4 (lib)
Starting     data-default-class- (all, legacy fallback)
Starting     dlist-1.0 (lib)
Starting     Only-0.1 (lib)
Starting     base-compat-0.11.2 (lib)
Building     dlist-1.0 (lib)
Building     data-default-class- (all, legacy fallback)
Building     base-compat-0.11.2 (lib)
Building     base-orphans-0.8.4 (lib)
Building     Only-0.1 (lib)
Downloaded   old-locale-
Downloading  old-time-
Installing   data-default-class- (all, legacy fallback)
Installing   Only-0.1 (lib)
Completed    data-default-class- (all, legacy fallback)
Starting     hsc2hs-0.68.7 (exe:hsc2hs)
Downloaded   old-time-
Downloading  monad-loops-0.4.3
Completed    Only-0.1 (lib)
Starting     hashable- (lib)
Downloaded   monad-loops-0.4.3
Downloading  split-
Building     hsc2hs-0.68.7 (exe:hsc2hs)
Building     hashable- (lib)
Downloaded   split-
Downloading  auto-update-0.1.6
Downloaded   auto-update-0.1.6
Downloading  unliftio-core-
Downloaded   unliftio-core-
Downloading  base64-bytestring-
Installing   dlist-1.0 (lib)
Completed    dlist-1.0 (lib)
Starting     old-locale- (lib)
Downloaded   base64-bytestring-
Downloading  utf8-string-1.0.2
Starting     base64-bytestring- (lib)
Building     old-locale- (lib)
Downloaded   utf8-string-1.0.2
Downloading  zlib-
Building     base64-bytestring- (lib)
Installing   base-orphans-0.8.4 (lib)
Downloaded   zlib-
Downloading  bytestring-builder-
Completed    base-orphans-0.8.4 (lib)
Installing   old-locale- (lib)
Downloaded   bytestring-builder-
Downloading  lift-type-
Starting     bytestring-builder- (lib)
Installing   hashable- (lib)
Completed    old-locale- (lib)
Starting     monad-loops-0.4.3 (lib)
Completed    hashable- (lib)
Starting     indexed-traversable-0.1.1 (lib)
Downloaded   lift-type-
Downloading  th-lift-0.8.2
Building     bytestring-builder- (lib)
Starting     lift-type- (lib)
Installing   bytestring-builder- (lib)
Building     monad-loops-0.4.3 (lib)
Completed    bytestring-builder- (lib)
Starting     unliftio-core- (lib)
Building     indexed-traversable-0.1.1 (lib)
Downloaded   th-lift-0.8.2
Downloading  silently-
Building     lift-type- (lib)
Installing   base64-bytestring- (lib)
Building     unliftio-core- (lib)
Completed    base64-bytestring- (lib)
Starting     integer-logarithms- (lib)
Downloaded   silently-
Downloading  unix-compat-0.5.3
Installing   lift-type- (lib)
Completed    lift-type- (lib)
Downloaded   unix-compat-0.5.3
Downloading  network-
Building     integer-logarithms- (lib)
Starting     unix-compat-0.5.3 (lib)
Installing   unliftio-core- (lib)
Completed    unliftio-core- (lib)
Starting     primitive- (lib)
Downloaded   network-
Downloading  unix-time-0.4.7
Building     unix-compat-0.5.3 (lib)
Installing   monad-loops-0.4.3 (lib)
Completed    monad-loops-0.4.3 (lib)
Building     primitive- (lib)
Downloaded   unix-time-0.4.7
Downloading  easy-file-0.2.2
Downloaded   easy-file-0.2.2
Downloading  resourcet-
Downloaded   resourcet-
Downloading  transformers-base-
Installing   integer-logarithms- (lib)
Completed    integer-logarithms- (lib)
Starting     silently- (lib)
Downloaded   transformers-base-
Downloading  monad-control-
Installing   unix-compat-0.5.3 (lib)
Building     silently- (lib)
Completed    unix-compat-0.5.3 (lib)
Starting     split- (lib)
Downloaded   monad-control-
Downloading  lifted-base-
Downloaded   lifted-base-
Downloading  blaze-builder-
Installing   silently- (lib)
Building     split- (lib)
Completed    silently- (lib)
Starting     splitmix- (lib)
Installing   hsc2hs-0.68.7 (exe:hsc2hs)
Downloaded   blaze-builder-
Downloading  blaze-markup-
Completed    hsc2hs-0.68.7 (exe:hsc2hs)
Starting     blaze-builder- (lib)
Building     splitmix- (lib)
Downloaded   blaze-markup-
Downloading  blaze-html-
Installing   indexed-traversable-0.1.1 (lib)
Building     blaze-builder- (lib)
Completed    indexed-traversable-0.1.1 (lib)
Starting     easy-file-0.2.2 (all, legacy fallback)
Downloaded   blaze-html-
Downloading  cookie-0.4.5
Installing   split- (lib)
Completed    split- (lib)
Starting     auto-update-0.1.6 (lib)
Building     easy-file-0.2.2 (all, legacy fallback)
Downloaded   cookie-0.4.5
Downloading  fast-logger-3.0.5
Building     auto-update-0.1.6 (lib)
Downloaded   fast-logger-3.0.5
Downloading  case-insensitive-
Downloaded   case-insensitive-
Downloading  resource-pool-
Installing   splitmix- (lib)
Installing   base-compat-0.11.2 (lib)
Completed    splitmix- (lib)
Starting     utf8-string-1.0.2 (lib)
Completed    base-compat-0.11.2 (lib)
Starting     tagged- (lib)
Installing   easy-file-0.2.2 (all, legacy fallback)
Downloaded   resource-pool-
Downloading  unliftio-0.2.18
Completed    easy-file-0.2.2 (all, legacy fallback)
Starting     th-abstraction- (lib)
Installing   auto-update-0.1.6 (lib)
Building     utf8-string-1.0.2 (lib)
Completed    auto-update-0.1.6 (lib)
Starting     transformers-compat-0.6.6 (lib)
Building     tagged- (lib)
Downloaded   unliftio-0.2.18
Downloading  typed-process-
Building     th-abstraction- (lib)
Downloaded   typed-process-
Downloading  http-types-0.12.3
Building     transformers-compat-0.6.6 (lib)
Downloaded   http-types-0.12.3
Downloading  mono-traversable-
Downloaded   mono-traversable-
Downloading  conduit-
Downloaded   conduit-
Downloading  path-pieces-0.2.1
Downloaded   path-pieces-0.2.1
Downloading  streaming-commons-
Starting     path-pieces-0.2.1 (lib)
Installing   blaze-builder- (lib)
Downloaded   streaming-commons-
Downloading  string-conversions-
Completed    blaze-builder- (lib)
Installing   tagged- (lib)
Starting     zlib- (lib)
Completed    tagged- (lib)
Starting     cookie-0.4.5 (lib)
Building     path-pieces-0.2.1 (lib)
Downloaded   string-conversions-
Downloading  th-lift-instances-0.1.18
Downloaded   th-lift-instances-0.1.18
Downloading  conduit-extra-1.3.5
Building     zlib- (lib)
Building     cookie-0.4.5 (lib)
Installing   transformers-compat-0.6.6 (lib)
Downloaded   conduit-extra-1.3.5
Downloading  attoparsec-iso8601-
Completed    transformers-compat-0.6.6 (lib)
Starting     old-time- (all, legacy fallback)
Downloaded   attoparsec-iso8601-
Downloading  http-api-data-0.4.3
Downloaded   http-api-data-0.4.3
Downloading  postgresql-libpq-
Downloaded   postgresql-libpq-
Downloading  postgresql-simple-0.6.4
Installing   path-pieces-0.2.1 (lib)
Completed    path-pieces-0.2.1 (lib)
Starting     time-compat-1.9.6 (lib)
Downloaded   postgresql-simple-0.6.4
Downloading  stm-chans-
Installing   cookie-0.4.5 (lib)
Downloaded   stm-chans-
Downloading  monad-logger-0.3.36
Starting     stm-chans- (all, legacy fallback)
Installing   utf8-string-1.0.2 (lib)
Completed    cookie-0.4.5 (lib)
Starting     async-2.2.3 (lib)
Building     time-compat-1.9.6 (lib)
Completed    utf8-string-1.0.2 (lib)
Starting     unordered-containers- (lib)
Downloaded   monad-logger-0.3.36
Downloading  persistent-
Downloaded   persistent-
Downloading  persistent-postgresql-
Building     async-2.2.3 (lib)
Building     unordered-containers- (lib)
Downloaded   persistent-postgresql-
Building     old-time- (all, legacy fallback)
Installing   async-2.2.3 (lib)
Installing   primitive- (lib)
Completed    async-2.2.3 (lib)
Starting     data-fix-0.3.1 (lib)
Completed    primitive- (lib)
Starting     case-insensitive- (lib)
Building     data-fix-0.3.1 (lib)
Building     case-insensitive- (lib)
Building     stm-chans- (all, legacy fallback)
Installing   th-abstraction- (lib)
Completed    th-abstraction- (lib)
Starting     postgresql-libpq- (all, legacy fallback)
Installing   case-insensitive- (lib)
Installing   data-fix-0.3.1 (lib)
Completed    case-insensitive- (lib)
Starting     network- (all, legacy fallback)
Completed    data-fix-0.3.1 (lib)
Starting     random-1.2.0 (lib)
Installing   zlib- (lib)
Completed    zlib- (lib)
Starting     base-compat-batteries-0.11.2 (lib)
Building     random-1.2.0 (lib)
Building     base-compat-batteries-0.11.2 (lib)
Installing   old-time- (all, legacy fallback)
Installing   time-compat-1.9.6 (lib)
Installing   stm-chans- (all, legacy fallback)
Completed    old-time- (all, legacy fallback)
Starting     blaze-markup- (lib)
Completed    time-compat-1.9.6 (lib)
Starting     distributive- (lib)
Completed    stm-chans- (all, legacy fallback)
Building     blaze-markup- (lib)
Starting     transformers-base- (lib)
Building     distributive- (lib)
Building     transformers-base- (lib)
Building     postgresql-libpq- (all, legacy fallback)
Installing   distributive- (lib)
Installing   transformers-base- (lib)
Building     network- (all, legacy fallback)
Completed    distributive- (lib)
Starting     string-conversions- (lib)
Completed    transformers-base- (lib)
Starting     typed-process- (lib)
Building     string-conversions- (lib)
Building     typed-process- (lib)
Installing   string-conversions- (lib)
Completed    string-conversions- (lib)
Starting     unliftio-0.2.18 (lib)
Building     unliftio-0.2.18 (lib)
Installing   typed-process- (lib)
Completed    typed-process- (lib)
Starting     vector- (lib)
Building     vector- (lib)
Installing   postgresql-libpq- (all, legacy fallback)
Completed    postgresql-libpq- (all, legacy fallback)
Starting     scientific- (lib)
Building     scientific- (lib)
Installing   blaze-markup- (lib)
Completed    blaze-markup- (lib)
Starting     resourcet- (lib)
Installing   random-1.2.0 (lib)
Building     resourcet- (lib)
Completed    random-1.2.0 (lib)
Starting     th-lift-0.8.2 (lib)
Building     th-lift-0.8.2 (lib)
Installing   unordered-containers- (lib)
Completed    unordered-containers- (lib)
Starting     http-types-0.12.3 (lib)
Building     http-types-0.12.3 (lib)
Installing   th-lift-0.8.2 (lib)
Completed    th-lift-0.8.2 (lib)
Starting     unix-time-0.4.7 (all, legacy fallback)
Installing   base-compat-batteries-0.11.2 (lib)
Installing   resourcet- (lib)
Completed    base-compat-batteries-0.11.2 (lib)
Starting     comonad-5.0.8 (lib)
Completed    resourcet- (lib)
Starting     monad-control- (all, legacy fallback)
Building     comonad-5.0.8 (lib)
Building     monad-control- (all, legacy fallback)
Installing   unliftio-0.2.18 (lib)
Installing   monad-control- (all, legacy fallback)
Completed    unliftio-0.2.18 (lib)
Starting     blaze-html- (lib)
Building     unix-time-0.4.7 (all, legacy fallback)
Completed    monad-control- (all, legacy fallback)
Starting     uuid-types-1.0.5 (lib)
Building     blaze-html- (lib)
Building     uuid-types-1.0.5 (lib)
Installing   scientific- (lib)
Completed    scientific- (lib)
Starting     lifted-base- (lib)
Building     lifted-base- (lib)
Installing   network- (all, legacy fallback)
Completed    network- (all, legacy fallback)
Installing   http-types-0.12.3 (lib)
Installing   unix-time-0.4.7 (all, legacy fallback)
Starting     attoparsec-0.14.1 (lib)
Completed    http-types-0.12.3 (lib)
Starting     streaming-commons- (lib)
Completed    unix-time-0.4.7 (all, legacy fallback)
Starting     fast-logger-3.0.5 (lib)
Building     attoparsec-0.14.1 (lib)
Building     streaming-commons- (lib)
Building     fast-logger-3.0.5 (lib)
Installing   comonad-5.0.8 (lib)
Completed    comonad-5.0.8 (lib)
Starting     bifunctors-5.5.11 (lib)
Installing   lifted-base- (lib)
Completed    lifted-base- (lib)
Installing   uuid-types-1.0.5 (lib)
Completed    uuid-types-1.0.5 (lib)
Building     bifunctors-5.5.11 (lib)
Installing   fast-logger-3.0.5 (lib)
Completed    fast-logger-3.0.5 (lib)
Installing   streaming-commons- (lib)
Completed    streaming-commons- (lib)
Installing   bifunctors-5.5.11 (lib)
Completed    bifunctors-5.5.11 (lib)
Starting     assoc-1.0.2 (lib)
Building     assoc-1.0.2 (lib)
Installing   assoc-1.0.2 (lib)
Completed    assoc-1.0.2 (lib)
Starting     these- (lib)
Building     these- (lib)
Installing   these- (lib)
Completed    these- (lib)
Starting     strict- (lib)
Building     strict- (lib)
Installing   blaze-html- (lib)
Completed    blaze-html- (lib)
Installing   strict- (lib)
Completed    strict- (lib)
Installing   attoparsec-0.14.1 (lib)
Completed    attoparsec-0.14.1 (lib)
Starting     attoparsec-iso8601- (lib)
Building     attoparsec-iso8601- (lib)
Installing   attoparsec-iso8601- (lib)
Completed    attoparsec-iso8601- (lib)
Starting     http-api-data-0.4.3 (lib)
Building     http-api-data-0.4.3 (lib)
Installing   http-api-data-0.4.3 (lib)
Completed    http-api-data-0.4.3 (lib)
Installing   vector- (lib)
Completed    vector- (lib)
Starting     th-lift-instances-0.1.18 (lib)
Starting     resource-pool- (lib)
Starting     vector-algorithms- (lib)
Starting     aeson- (lib)
Building     vector-algorithms- (lib)
Building     resource-pool- (lib)
Building     th-lift-instances-0.1.18 (lib)
Building     aeson- (lib)
Installing   th-lift-instances-0.1.18 (lib)
Completed    th-lift-instances-0.1.18 (lib)
Installing   resource-pool- (lib)
Completed    resource-pool- (lib)
Installing   vector-algorithms- (lib)
Completed    vector-algorithms- (lib)
Starting     mono-traversable- (lib)
Building     mono-traversable- (lib)
Installing   mono-traversable- (lib)
Completed    mono-traversable- (lib)
Starting     conduit- (lib)
Building     conduit- (lib)
Installing   conduit- (lib)
Completed    conduit- (lib)
Starting     conduit-extra-1.3.5 (lib)
Building     conduit-extra-1.3.5 (lib)
Installing   conduit-extra-1.3.5 (lib)
Completed    conduit-extra-1.3.5 (lib)
Starting     monad-logger-0.3.36 (lib)
Building     monad-logger-0.3.36 (lib)
Installing   monad-logger-0.3.36 (lib)
Completed    monad-logger-0.3.36 (lib)
Installing   aeson- (lib)
Completed    aeson- (lib)
Starting     postgresql-simple-0.6.4 (lib)
Starting     persistent- (lib)
Building     persistent- (lib)
Building     postgresql-simple-0.6.4 (lib)
Installing   postgresql-simple-0.6.4 (lib)
Completed    postgresql-simple-0.6.4 (lib)
Installing   persistent- (lib)
Completed    persistent- (lib)
Starting     persistent-postgresql- (lib)
Building     persistent-postgresql- (lib)
Installing   persistent-postgresql- (lib)
Completed    persistent-postgresql- (lib)
@ WARNING: Installation might not be completed as desired! @
The command "cabal install [TARGETS]" doesn't expose libraries.
* You might have wanted to add them as dependencies to your package. In this
case add "persistent-postgresql" to the build-depends field(s) of your
package's .cabal file.
* You might have wanted to add them to a GHC environment. In this case use
"cabal install --lib persistent-postgresql". The "--lib" flag is provisional:
see https://github.com/haskell/cabal/issues/6481 for more information.
bmaxa at Branimirs-Air ~ % cabal install --lib persistent-postgresql
Warning: The package list for 'hackage.haskell.org' is 69 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: The package list for 'hackage.haskell.org' is 69 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Up to date
bmaxa at Branimirs-Air ~ %

Greetings, Branimir.

> On 21.09.2021., at 22:59, Geraldus <heraldhoi at gmail.com> wrote:
> Thank you for your response. 
> I use 13.4:
> ```
> arthurfayzrakhmanov at MacBook-Pro-Arthur ~/L/h/pg001> brew search postgres
> ==> Formulae
> check_postgres      postgresql at 11       postgresql at 9.5      qt-postgresql
> postgresql ✔        postgresql at 12       postgresql at 9.6      postgis
> postgresql at 10       postgresql at 9.4      postgrest
> ==> Casks
> navicat-for-postgresql                   postgrespreferencepane
> postgres-unofficial                      sqlpro-for-postgres
> arthurfayzrakhmanov at MacBook-Pro-Arthur ~/L/h/pg001> psql --version
> psql (PostgreSQL) 13.4
> ```
> ср, 22 сент. 2021 г. в 01:55, Branimir Maksimovic <branimir.maksimovic at gmail.com <mailto:branimir.maksimovic at gmail.com>>:
> which version of postgresql you are using?
> bmaxa at Branimirs-Air ~ % brew search postgres
> ==> Formulae
> check_postgres              postgresql at 10               postgresql at 12               postgresql at 9.5              postgrest                   postgis
> postgresql                  postgresql at 11               postgresql at 9.4              postgresql at 9.6              qt-postgresql
> ==> Casks
> navicat-for-postgresql                     postgres-unofficial                        postgrespreferencepane                     sqlpro-for-postgres
> ?
> Greetings, Branimir.
>> On 21.09.2021., at 22:47, Geraldus <heraldhoi at gmail.com <mailto:heraldhoi at gmail.com>> wrote:
>> Hi, dear Cafe!
>> I'm having trouble compiling an application which uses PostgreSQL on a macbook with an M1 chip.  
>> Postgre itself seems to work fine.  It is installed via `homebrew` (if I'm not mistaken this is the only way on Mac to get pg_config, which is required for `persistent-postgresql`).  The error message is following: 
>> ```
>> persistent-postgresql> <command line>: dlopen(/Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-, 5): Symbol not found: _PQclear
>> persistent-postgresql>   Referenced from: /Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-
>> persistent-postgresql>   Expected in: flat namespace
>> persistent-postgresql>  in /Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-
>> ```
>> The minimal setup to reproduce is following: 
>> ```
>> dependencies:
>> - base >= 4.7 && < 5
>> - persistent >= && < 3
>> - persistent-postgresql >= && < 3
>> ```
>> Digging around gave me just a few clues.  It seems that `libpq` I have is compiled some other way it expected, and missing some symbols required `persistent-postgresql` to work.  I believe this is not a bug, rather that a local configuration issue.  
>> Does anyone know which is right setup to build persistent-postgresql on Macs with M1 chip? Thanks in advance.
>> Sincerely.  
>> Arthur.
>> P.S. Please apologize if this is not a right place to ask such questions.  Asked already in Yesod Google Groups and Stack Overflow.  But didn't received any feedback.
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe <http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe>
>> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210922/f5a3fbb3/attachment-0001.html>

More information about the Haskell-Cafe mailing list