Skip to content

Instantly share code, notes, and snippets.

@tchayintr
Created August 22, 2024 12:30
Show Gist options
  • Select an option

  • Save tchayintr/7bf3e7a391931e642cd1e2304a4d8bc8 to your computer and use it in GitHub Desktop.

Select an option

Save tchayintr/7bf3e7a391931e642cd1e2304a4d8bc8 to your computer and use it in GitHub Desktop.
# To check if found portaudio if return nothing, the setup was not completed
ldconfig -p | grep portaudio
# Add to .bash_profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/<username>/.linuxbrew/lib
# Update the Linker Cache
ldconfig
# Or the last resort is
LDFLAGS="-L/home/<username>/.linuxbrew/lib -l:libportaudio.a" CFLAGS="-I/home/<username>/.linuxbrew/include" pip install pyaudio
@Chonlasitsk
Copy link

Chonlasitsk commented Sep 17, 2024

Issue:

./Modules/_uuidmodule.c:11:12: fatal error: uuid.h: No such file or directory
   11 |   #include <uuid.h>
      |            ^~~~~~~~

Solve:

brew unlink util-linux

@Chonlasitsk
Copy link

Chonlasitsk commented Sep 17, 2024

If stuck:

/home/tawan/.cache/Homebrew/Logs/fontconfig/02.make:
mv -f fcobjshash.h.tmp fcobjshash.h || ( rm -f fcobjshash.h.tmp && false )
gperf: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
WARNING: 'gperf' is missing on your system.
         You might have modified some files without having the proper
         tools for further handling them.  Check the 'README' file, it
         often tells you about the needed prerequisites for installing
         this package.  You may also peek at any GNU archive site, in
         case some other package contains this missing 'gperf' program.
make[1]: *** [Makefile:1032: fcobjshash.h] Error 1
make[1]: *** Waiting for unfinished jobs....
config.status: executing src/fcstdint.h commands
config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H
config.status: src/fcstdint.h is unchanged
make[1]: Leaving directory '/tmp/fontconfig-20240917-3343960-qjy0k3/fontconfig-2.15.0/src'
make: *** [Makefile:629: install-recursive] Error 1

TRY:

brew install gcc  

then re-install ffmpeg again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment