Elefant wrote: ↑Tue Jun 18, 2024 7:14 pm
Reading the instructions, it seems that it provides a virtual environment for building programs. So just running ./configure will not have access to the build libraries. You probably need to run something like
Code: Select all
$ alias jhbuild="PATH=.new_local/bin:$PATH jhbuild"
, then
. I don't know for sure, though.
I ran the following two commands in this order:
Code: Select all
alias jhbuild="PATH=/Users/myuser/.new_local/bin:$PATH jhbuild"
PKG_CONFIG_PATH=/Users/myuser/src/curl-8.8.0/artifacts/lib/pkgconfig jhbuild ./configure
And got the following error:
Code: Select all
Loading .env environment variables...
Found Command Line Tools 'version: 15.3.0.0.1.1708646388'
Command Line Tools version 15.300000
Traceback (most recent call last):
File "/Users/myuser/.new_local/share/pyenv/versions/3.11.7/lib/python3.11/pkgutil.py", line 496, in find_loader
spec = importlib.util.find_spec(fullname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib.util>", line 94, in find_spec
ModuleNotFoundError: No module named 'jhbuild.commands.'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/myuser/.new_local/libexec/run_jhbuild.py", line 17, in <module>
jhbuild.main.main(sys.argv[1:])
File "/Users/myuser/Source/jhbuild/jhbuild/main.py", line 120, in main
rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/Source/jhbuild/jhbuild/commands/__init__.py", line 175, in run
try_import_module('jhbuild.commands.%s' % command)
File "/Users/myuser/Source/jhbuild/jhbuild/utils/misc.py", line 39, in try_import_module
if pkgutil.get_loader(module_name) is None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/.new_local/share/pyenv/versions/3.11.7/lib/python3.11/pkgutil.py", line 482, in get_loader
return find_loader(fullname)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/myuser/.new_local/share/pyenv/versions/3.11.7/lib/python3.11/pkgutil.py", line 502, in find_loader
raise ImportError(msg.format(fullname, type(ex), ex)) from ex
ImportError: Error while finding loader for 'jhbuild.commands../configure' (<class 'ModuleNotFoundError'>: No module named 'jhbuild.commands.')
When I just run
Code: Select all
PKG_CONFIG_PATH=/Users/myuser/src/curl-8.8.0/artifacts/lib/pkgconfig ./configure
without the
jhbuild before the
./configure things seem to go better. Then things usually die off around:
Code: Select all
checking for bzlib.h... yes
checking for lzma_code in -llzma... yes
checking for lzma.h... no
checking for ZSTD_compress in -lzstd... no
checking for MagickWand... no
checking for MagickWand-6.Q16HDRI... no
checking for MagickWand-config in default path... no
checking for threads availability... pthreads for C and C++
checking for sdl2 >= 2.0.0... no
checking for sdl2-config... no
checking for SDL2.framework... *** The sdl2-config script installed by SDL2 could not be found
*** If SDL2 was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
configure: checking for which client to compile:...
checking for gtk+-3.0 >= 3.22.0... no
checking for gtk+-3.0 >= 3.10.0... no
checking for gtk4 >= 4.0.0... no
checking for qtpaths... no
checking for sdl2 >= 2.0.0... no
checking for sdl2-config... (cached) no
checking for SDL2.framework... *** The sdl2-config script installed by SDL2 could not be found
*** If SDL2 was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
configure: error: can not build any of the supported clients