gopro icon indicating copy to clipboard operation
gopro copied to clipboard

Stack install Error While building package postgresql-libpq

Open mabachel opened this issue 1 year ago • 8 comments

On commit 330b89709b566fae5cd4d6e05e23e01de302dc99 I get a stack install error:

Fedora 38 (6.5.8-200.fc38.x86_64)

postgresql-libpq             > configure
postgresql-libpq             > [1 of 3] Compiling Main             ( /tmp/stack-b96ac213d83ea9ad/postgresql-libpq-0.9.5.0/Setup.hs, /tmp/stack-b96ac213d83ea9ad/postgresql-libpq-0.9.5.0/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.8.1.0/setup/Main.o )
postgresql-libpq             > [2 of 3] Compiling StackSetupShim   ( /home/relentless/.stack/setup-exe-src/setup-shim-Z6RU0evB.hs, /tmp/stack-b96ac213d83ea9ad/postgresql-libpq-0.9.5.0/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.8.1.0/setup/StackSetupShim.o )
postgresql-libpq             > [3 of 3] Linking /tmp/stack-b96ac213d83ea9ad/postgresql-libpq-0.9.5.0/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.8.1.0/setup/setup
postgresql-libpq             > Configuring postgresql-libpq-0.9.5.0...
postgresql-libpq             > Error: setup: The program 'pg_config' is required but it could not be found.
postgresql-libpq             >
crypton                          > copy/register
crypton                          > Installing library in /home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/lib/x86_64-linux-ghc-9.4.6/crypton-0.33-E0XHNcGjfq55myX2eFTwG6
crypton                          > Registering library for crypton-0.33..
cryptonite                       > copy/register
cryptonite                       > Installing library in /home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/lib/x86_64-linux-ghc-9.4.6/cryptonite-0.30-K750s6VpRDbLPZF227pMDg
cryptonite                       > Registering library for cryptonite-0.30..
Progress 93/252            

--  While building package postgresql-libpq-0.9.5.0 (scroll up to its section to see the error) using:
      /tmp/stack-9c92f5e8c1152d4e/postgresql-libpq-0.9.5.0/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.8.1.0/setup/setup --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.8.1.0 configure --with-ghc=/home/relentless/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.6/bin/ghc-9.4.6 --with-ghc-pkg=/home/relentless/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.6/bin/ghc-pkg-9.4.6 --user --package-db=clear --package-db=global --package-db=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/pkgdb --libdir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/lib --bindir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/bin --datadir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/share --libexecdir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/libexec --sysconfdir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/etc --docdir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/doc/postgresql-libpq-0.9.5.0 --htmldir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/doc/postgresql-libpq-0.9.5.0 --haddockdir=/home/relentless/.stack/snapshots/x86_64-linux-tinfo6/4de6784bf5c40578d07337abf654ed2c3f592b74f2aab218a101c8a52d7bf209/9.4.6/doc/postgresql-libpq-0.9.5.0 --dependency=Cabal=Cabal-3.8.1.0 --dependency=base=base-4.17.2.0 --dependency=bytestring=bytestring-0.11.5.1 --dependency=unix=unix-2.7.3 -f-use-pkg-config --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1

mabachel avatar Nov 01 '23 15:11 mabachel

Found a solution myself: sudo dnf install libpq-devel

mabachel avatar Nov 01 '23 16:11 mabachel

Yeah, libpq is a requirement for building, but not for every configurable usage. nix-managed builds always do the right thing by default, but too few people use nix. heh

dustin avatar Nov 01 '23 21:11 dustin

Offtopic: I just want to download all my media. How would I do that. I did a sync and a I can see the proxies in the web page after a serve. But how can I ran download all?

Missing: path mIDs...

Usage: gopro download path mIDs...

  Download media to local path

I would love one command to download all my files..

mabachel avatar Nov 01 '23 21:11 mabachel

Yeah, libpq is a requirement for building, but not for every configurable usage. nix-managed builds always do the right thing by default, but too few people use nix. heh

May you mention those requirements in your ReadMe?

mabachel avatar Nov 01 '23 21:11 mabachel

Yeah, libpq is a requirement for building, but not for every configurable usage. nix-managed builds always do the right thing by default, but too few people use nix. heh

May you mention those requirements in your ReadMe?

Yeah, that's not a bad idea. If you use nix, then you automatically get all of the dependencies for each subproject here. Some people, don't, though.

dustin avatar Nov 01 '23 22:11 dustin

Offtopic: I just want to download all my media. How would I do that. I did a sync and a I can see the proxies in the web page after a serve. But how can I ran download all?

Missing: path mIDs...

Usage: gopro download path mIDs...

  Download media to local path

I would love one command to download all my files..

Look into the backup commands.

Alternatively, I wrote a FUSE filesystem and just point various computers at it for offline processing. I've got ~19TB of footage my desktop is churning through.

dustin avatar Nov 01 '23 22:11 dustin

hugh, I thought there is an easier way.

Fiddling with AWS S3 is above my skill level and seems like a detour if I just want a local copy of the GoPro cloud.

How am I supposed to get those mIDs from commandline? There is no select all mIDs in the web GUI, is there?

mabachel avatar Nov 02 '23 05:11 mabachel

hugh, I thought there is an easier way.

Fiddling with AWS S3 is above my skill level and seems like a detour if I just want a local copy of the GoPro cloud.

How am I supposed to get those mIDs from commandline? There is no select all mIDs in the web GUI, is there?

IF you want local, then run one of the backuplocal commands.

dustin avatar Nov 02 '23 06:11 dustin