0

I am unable to use PyCuba, a Python interface for the multidimensional-integration library Cuba, on macOS 15.5. PyMultiNest, which requires PyCuba, is common for Bayesian analysis in the scientific literature, but nobody seems to have ever asked a question about it on StackOverflow.

% python3 -c 'import pycuba'
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 import pycuba
 File "/opt/anaconda3/envs/native/lib/python3.13/site-packages/pycuba/__init__.py", line 12, in <module>
 lib = ctypes.cdll.LoadLibrary('libcuba.so')
 File "/opt/anaconda3/envs/native/lib/python3.13/ctypes/__init__.py", line 471, in LoadLibrary
 return self._dlltype(name)
 ~~~~~~~~~~~~~^^^^^^
 File "/opt/anaconda3/envs/native/lib/python3.13/ctypes/__init__.py", line 390, in __init__
 self._handle = _dlopen(self._name, mode)
 ~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: dlopen(libcuba.so, 0x0006): tried: 'libcuba.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibcuba.so' (no such file), '/opt/anaconda3/envs/native/lib/python3.13/lib-dynload/../../libcuba.so' (no such file), '/opt/anaconda3/envs/native/bin/../lib/libcuba.so' (no such file), '/usr/lib/libcuba.so' (no such file, not in dyld cache), 'libcuba.so' (no such file), '/usr/local/lib/libcuba.so' (no such file), '/usr/lib/libcuba.so' (no such file, not in dyld cache)

I tried "pip install cuba", which was sufficient on another user's macOS system. I tried "brew install cuba" as well. Also, attempting to compile a git-installation of Cuba failed:

% git clone https://github.com/JohannesBuchner/cuba/
cd cuba
./configure
./makesharedlib.sh
Cloning into 'cuba'...
remote: Enumerating objects: 682, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 682 (delta 2), reused 1 (delta 0), pack-reused 676 (from 1)
Receiving objects: 100% (682/682), 2.96 MiB | 4.68 MiB/s, done.
Resolving deltas: 100% (465/465), done.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for long double with more range or precision than double... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for pid_t... yes
checking for powl... yes
checking for erf... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking build system type... arm-apple-darwin24.5.0
checking host system type... arm-apple-darwin24.5.0
checking for shmget... yes
checking for getloadavg... yes
checking for variable-size arrays... yes
checking for MathLink... no
checking for qmake... qmake
Detected locale "C" with character encoding "US-ASCII", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
configure: creating ./config.status
config.status: creating makefile
config.status: creating config.h
sed: --in-place: No such file or directory
CC = gcc
CFLAGS = -O3 -fPIC -fcommon -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I$(common) -I. -I$(srcdir)
MCFLAGS = 
F77 = gfortran
FFLAGS = -g -O2
LIBS = -lm
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
RANLIB = ranlib
EXE = 
prefix = /usr/local
exec_prefix = ${prefix}
srcdir = .
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
datarootdir = ${prefix}/share
datadir = ${datarootdir}
MATH_DEFAULT = 
TOOLS_DEFAULT = 
DEMO_FORTRAN_DEFAULT = demo-fortran$(EXE)
MCC = CC="$(tools)/fcc" CXX="$(tools)/fcc -stdlib=libstdc++" \
 REALCC="$(CC)" PATH="$(PATH):$(tools)" mcc
TARDIR = Cuba-4.1
TARFILE = $(TARDIR).tar.gz
HEADERS = cuba.h
LIB = libcuba.a
MATH = Vegas$(EXE) Suave$(EXE) Divonne$(EXE) Cuhre$(EXE)
TOOLS = partview$(EXE)
all: lib demos $(MATH_DEFAULT) $(TOOLS_DEFAULT)
lib: $(LIB)
demos: demo-c$(EXE) $(DEMO_FORTRAN_DEFAULT)
math: $(MATH)
tools: $(TOOLS)
install: lib $(TOOLS_DEFAULT)
 $(INSTALL) -m 755 -d $(DESTDIR)$(libdir) \
 $(DESTDIR)$(includedir) \
 $(DESTDIR)$(bindir) \
 $(DESTDIR)$(datadir)
 $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)
 for f in $(HEADERS) ; do \
 $(INSTALL_DATA) `test -f $$f || echo $(srcdir)/`$$f $(DESTDIR)$(includedir); \
 done
 for f in $(MATH) $(TOOLS) ; do \
 test -f $$f && $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir) || : ; \
 done
 $(INSTALL_DATA) $(srcdir)/cuba.pdf $(DESTDIR)$(datadir)
check: demo-c
 ./demo-c | grep RESULT > demo-c.out
 @echo diff demo-c.out $(demo)/demo-c.out
 @diff demo-c.out $(demo)/demo-c.out || \
 echo "Note: This is serious only if the results deviate significantly."
.SUFFIXES:
.SUFFIXES: .c .f .tm
common = $(srcdir)/src/common
vegas = $(srcdir)/src/vegas
suave = $(srcdir)/src/suave
divonne = $(srcdir)/src/divonne
cuhre = $(srcdir)/src/cuhre
demo = $(srcdir)/demo
tools = $(srcdir)/tools
COMMON_DEPS = $(common)/stddecl.h $(common)/ChiSquare.c $(common)/Erf.c
COMMON_CDEPS = $(COMMON_DEPS) $(common)/CSample.c $(common)/Parallel.c $(common)/sock.h
COMMON_TMDEPS = $(COMMON_DEPS) $(common)/MSample.c
VEGAS_C = $(vegas)/Vegas.c
VEGAS_TM = $(vegas)/Vegas.tm
VEGAS_DEPS = $(common)/Random.c \
 $(vegas)/decl.h $(vegas)/common.c \
 $(vegas)/Grid.c $(vegas)/Integrate.c
VEGAS = $(VEGAS_C) $(VEGAS_TM) $(VEGAS_DEPS)
$(LIB)(Vegas.o): config.h $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) 
 $(CC) $(CFLAGS) -I$(vegas) -DNOUNDERSCORE -c -o Vegas.o $(VEGAS_C)
 $(AR) $(ARFLAGS) $(LIB) Vegas.o
 $(RM) Vegas.o
$(LIB)(llVegas.o): config.h $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -DNOUNDERSCORE -c -o llVegas.o $(VEGAS_C)
 $(AR) $(ARFLAGS) $(LIB) llVegas.o
 $(RM) llVegas.o
$(LIB)(Vegas_.o): config.h $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(vegas) -c -o Vegas_.o $(VEGAS_C)
 $(AR) $(ARFLAGS) $(LIB) Vegas_.o
 $(RM) Vegas_.o
$(LIB)(llVegas_.o): config.h $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -c -o llVegas_.o $(VEGAS_C)
 $(AR) $(ARFLAGS) $(LIB) llVegas_.o
 $(RM) llVegas_.o
Vegas$(EXE): config.h $(VEGAS_TM) $(VEGAS_DEPS) $(COMMON_TMDEPS)
 $(MCC) $(MCFLAGS) $(CFLAGS) -I$(vegas) -o Vegas$(EXE) $(VEGAS_TM)
 strip Vegas$(EXE)
SUAVE_C = $(suave)/Suave.c
SUAVE_TM = $(suave)/Suave.tm
SUAVE_DEPS = $(common)/Random.c \
 $(suave)/decl.h $(suave)/common.c \
 $(suave)/Grid.c $(suave)/Fluct.c $(suave)/Sample.c \
 $(suave)/Integrate.c
SUAVE = $(SUAVE_C) $(SUAVE_TM) $(SUAVE_DEPS)
$(LIB)(Suave.o): config.h $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(suave) -DNOUNDERSCORE -c -o Suave.o $(SUAVE_C)
 $(AR) $(ARFLAGS) $(LIB) Suave.o
 $(RM) Suave.o
$(LIB)(llSuave.o): config.h $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -DNOUNDERSCORE -c -o llSuave.o $(SUAVE_C)
 $(AR) $(ARFLAGS) $(LIB) llSuave.o
 $(RM) llSuave.o
$(LIB)(Suave_.o): config.h $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(suave) -c -o Suave_.o $(SUAVE_C)
 $(AR) $(ARFLAGS) $(LIB) Suave_.o
 $(RM) Suave_.o
$(LIB)(llSuave_.o): config.h $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -c -o llSuave_.o $(SUAVE_C)
 $(AR) $(ARFLAGS) $(LIB) llSuave_.o
 $(RM) llSuave_.o
Suave$(EXE): config.h $(SUAVE_TM) $(SUAVE_DEPS) $(COMMON_TMDEPS)
 $(MCC) $(MCFLAGS) $(CFLAGS) -I$(suave) -o Suave$(EXE) $(SUAVE_TM)
 strip Suave$(EXE)
DIVONNE_C = $(divonne)/Divonne.c
DIVONNE_TM = $(divonne)/Divonne.tm
DIVONNE_DEPS = $(common)/Random.c \
 $(divonne)/decl.h $(divonne)/common.c \
 $(divonne)/KorobovCoeff.c $(divonne)/Rule.c $(divonne)/Sample.c \
 $(divonne)/FindMinimum.c $(divonne)/Iterate.c $(divonne)/Explore.c \
 $(divonne)/Split.c $(divonne)/Integrate.c
DIVONNE = $(DIVONNE_C) $(DIVONNE_TM) $(DIVONNE_DEPS)
$(LIB)(Divonne.o): config.h $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(divonne) -DNOUNDERSCORE -c -o Divonne.o $(DIVONNE_C)
 $(AR) $(ARFLAGS) $(LIB) Divonne.o
 $(RM) Divonne.o
$(LIB)(llDivonne.o): config.h $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -DNOUNDERSCORE -c -o llDivonne.o $(DIVONNE_C)
 $(AR) $(ARFLAGS) $(LIB) llDivonne.o
 $(RM) llDivonne.o
$(LIB)(Divonne_.o): config.h $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(divonne) -c -o Divonne_.o $(DIVONNE_C)
 $(AR) $(ARFLAGS) $(LIB) Divonne_.o
 $(RM) Divonne_.o
$(LIB)(llDivonne_.o): config.h $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -c -o llDivonne_.o $(DIVONNE_C)
 $(AR) $(ARFLAGS) $(LIB) llDivonne_.o
 $(RM) llDivonne_.o
Divonne$(EXE): config.h $(DIVONNE_TM) $(DIVONNE_DEPS) $(COMMON_TMDEPS)
 $(MCC) $(MCFLAGS) $(CFLAGS) -I$(divonne) -o Divonne$(EXE) $(DIVONNE_TM)
 strip Divonne$(EXE)
CUHRE_C = $(cuhre)/Cuhre.c
CUHRE_TM = $(cuhre)/Cuhre.tm
CUHRE_DEPS = \
 $(cuhre)/decl.h $(cuhre)/common.c \
 $(cuhre)/Rule.c $(cuhre)/Integrate.c
CUHRE = $(CUHRE_C) $(CUHRE_TM) $(CUHRE_DEPS)
$(LIB)(Cuhre.o): config.h $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(cuhre) -DNOUNDERSCORE -c -o Cuhre.o $(CUHRE_C)
 $(AR) $(ARFLAGS) $(LIB) Cuhre.o
 $(RM) Cuhre.o
$(LIB)(llCuhre.o): config.h $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -DNOUNDERSCORE -c -o llCuhre.o $(CUHRE_C)
 $(AR) $(ARFLAGS) $(LIB) llCuhre.o
 $(RM) llCuhre.o
$(LIB)(Cuhre_.o): config.h $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(cuhre) -c -o Cuhre_.o $(CUHRE_C)
 $(AR) $(ARFLAGS) $(LIB) Cuhre_.o
 $(RM) Cuhre_.o
$(LIB)(llCuhre_.o): config.h $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS)
 $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -c -o llCuhre_.o $(CUHRE_C)
 $(AR) $(ARFLAGS) $(LIB) llCuhre_.o
 $(RM) llCuhre_.o
Cuhre$(EXE): config.h $(CUHRE_TM) $(CUHRE_DEPS) $(COMMON_TMDEPS)
 $(MCC) $(MCFLAGS) $(CFLAGS) -I$(cuhre) -o Cuhre$(EXE) $(CUHRE_TM)
 strip Cuhre$(EXE)
$(LIB)(Fork.o): $(common)/Fork.c $(common)/stddecl.h $(common)/sock.h
 $(CC) $(CFLAGS) -DNOUNDERSCORE -c -o Fork.o $(common)/Fork.c
 $(AR) $(ARFLAGS) $(LIB) Fork.o
 $(RM) Fork.o
$(LIB)(Fork_.o): $(common)/Fork.c $(common)/stddecl.h $(common)/sock.h
 $(CC) $(CFLAGS) -c -o Fork_.o $(common)/Fork.c
 $(AR) $(ARFLAGS) $(LIB) Fork_.o
 $(RM) Fork_.o
$(LIB)(Global.o): $(common)/Global.c $(common)/stddecl.h
 $(CC) $(CFLAGS) -DNOUNDERSCORE -c -o Global.o $(common)/Global.c
 $(AR) $(ARFLAGS) $(LIB) Global.o
 $(RM) Global.o
$(LIB)(Global_.o): $(common)/Global.c $(common)/stddecl.h
 $(CC) $(CFLAGS) -c -o Global_.o $(common)/Global.c
 $(AR) $(ARFLAGS) $(LIB) Global_.o
 $(RM) Global_.o
$(LIB)(Data.o): $(common)/Data.c $(common)/stddecl.h
 $(CC) $(CFLAGS) -c -o Data.o $(common)/Data.c
 $(AR) $(ARFLAGS) $(LIB) Data.o
 $(RM) Data.o
$(LIB): $(LIB)(Vegas.o) $(LIB)(Vegas_.o) \
 $(LIB)(llVegas.o) $(LIB)(llVegas_.o) \
 $(LIB)(Suave.o) $(LIB)(Suave_.o) \
 $(LIB)(llSuave.o) $(LIB)(llSuave_.o) \
 $(LIB)(Divonne.o) $(LIB)(Divonne_.o) \
 $(LIB)(llDivonne.o) $(LIB)(llDivonne_.o) \
 $(LIB)(Cuhre.o) $(LIB)(Cuhre_.o) \
 $(LIB)(llCuhre.o) $(LIB)(llCuhre_.o) \
 $(LIB)(Fork.o) $(LIB)(Fork_.o) \
 $(LIB)(Global.o) $(LIB)(Global_.o) \
 $(LIB)(Data.o)
 -$(RANLIB) $(LIB)
DEMO_F = $(demo)/demo-fortran.F
DEMO_C = $(demo)/demo-c.c
DEMO_TM = $(demo)/demo-math.m $(demo)/testsuite.m
DEMO = $(DEMO_F) $(DEMO_C) $(DEMO_TM) $(demo)/demo-c.out $(demo)/cuba.F
demo-fortran$(EXE): $(DEMO_F) $(LIB)
 $(F77) $(FFLAGS) -o demo-fortran$(EXE) $(DEMO_F) $(LIB) $(LIBS)
demo-c$(EXE): $(DEMO_C) $(srcdir)/cuba.h $(LIB)
 $(CC) $(CFLAGS) -o demo-c$(EXE) $(DEMO_C) $(LIB) $(LIBS)
PARTVIEW = $(tools)/partview.cpp $(tools)/partview.pro \
 $(tools)/quit.xpm $(tools)/print.xpm
partview$(EXE): $(PARTVIEW)
 qmake -o makefile.partview $(tools)/partview.pro
 $(MAKE) -f makefile.partview
 $(RM) partview.o partview.moc makefile.partview
 -strip partview$(EXE)
TARCONTENTS = $(srcdir)/COPYING $(srcdir)/ChangeLog \
 $(srcdir)/configure $(srcdir)/configure.ac \
 $(srcdir)/config.sub $(srcdir)/config.guess $(srcdir)/install-sh \
 $(srcdir)/makefile.in $(srcdir)/config.h.in \
 $(srcdir)/cuba.pdf $(srcdir)/cuba.tex $(srcdir)/cuba.h \
 $(COMMON_CDEPS) $(COMMON_TMDEPS) \
 $(common)/Global.c $(common)/Fork.c $(common)/Data.c \
 $(VEGAS) $(SUAVE) $(DIVONNE) $(divonne)/KorobovCoeff.c-* $(CUHRE) \
 $(DEMO) $(PARTVIEW) $(tools)/partview.m \
 $(tools)/mcc $(tools)/fcc $(tools)/mkstatic $(tools)/mkdist.c
dist:
 mkdist cvfz $(TARFILE) $(TARDIR) \
 $(patsubst $(srcdir)/%,%, $(sort $(TARCONTENTS)))
# ln -s . $(TARDIR)
# tar cvfz $(TARFILE) --owner=root --group=root \
# $(patsubst $(srcdir)/%,$(TARDIR)/%, $(sort $(TARCONTENTS)))
# $(RM) $(TARDIR)
pub: dist
 mv -f $(TARFILE) web/
 ./mkwebpage
clean:
 -$(RM) $(TARFILE) $(TARDIR) demo-c.out \
 partview.moc partview.o makefile.partview \
 *.o */*.o */*.tm.c
distclean: clean
 -$(RM) $(LIB) demo-c demo-fortran $(MATH) $(TOOLS) \
 config.h config.log config.status makefile
rebuilding libcuba.a archive
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DNOUNDERSCORE -c -o Vegas.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas.o
ar: creating archive libcuba.a
a - Vegas.o
rm -f Vegas.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -c -o Vegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas_.o
a - Vegas_.o
rm -f Vegas_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -DNOUNDERSCORE -c -o llVegas.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas.o
a - llVegas.o
rm -f llVegas.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -c -o llVegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas_.o
a - llVegas_.o
rm -f llVegas_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DNOUNDERSCORE -c -o Suave.o ./src/suave/Suave.c
ar rv libcuba.a Suave.o
a - Suave.o
rm -f Suave.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -c -o Suave_.o ./src/suave/Suave.c
ar rv libcuba.a Suave_.o
a - Suave_.o
rm -f Suave_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -DNOUNDERSCORE -c -o llSuave.o ./src/suave/Suave.c
ar rv libcuba.a llSuave.o
a - llSuave.o
rm -f llSuave.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -c -o llSuave_.o ./src/suave/Suave.c
ar rv libcuba.a llSuave_.o
a - llSuave_.o
rm -f llSuave_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -DNOUNDERSCORE -c -o Divonne.o ./src/divonne/Divonne.c
ar rv libcuba.a Divonne.o
a - Divonne.o
rm -f Divonne.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -c -o Divonne_.o ./src/divonne/Divonne.c
ar rv libcuba.a Divonne_.o
a - Divonne_.o
rm -f Divonne_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -DLONGLONGINT -DNOUNDERSCORE -c -o llDivonne.o ./src/divonne/Divonne.c
In file included from ./src/divonne/Divonne.c:14:
In file included from ./src/common/CSample.c:75:
In file included from ./src/divonne/common.c:12:
./src/divonne/Sample.c:89:18: warning: absolute value function 'abs' given an argument of type 'number' (aka 'long long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
 89 | creal dx = abs(2*c - neff)/(real)neff;
 | ^
./src/divonne/Sample.c:89:18: note: use function 'llabs' instead
 89 | creal dx = abs(2*c - neff)/(real)neff;
 | ^~~
 | llabs
1 warning generated.
ar rv libcuba.a llDivonne.o
a - llDivonne.o
rm -f llDivonne.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -DLONGLONGINT -c -o llDivonne_.o ./src/divonne/Divonne.c
In file included from ./src/divonne/Divonne.c:14:
In file included from ./src/common/CSample.c:75:
In file included from ./src/divonne/common.c:12:
./src/divonne/Sample.c:89:18: warning: absolute value function 'abs' given an argument of type 'number' (aka 'long long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
 89 | creal dx = abs(2*c - neff)/(real)neff;
 | ^
./src/divonne/Sample.c:89:18: note: use function 'llabs' instead
 89 | creal dx = abs(2*c - neff)/(real)neff;
 | ^~~
 | llabs
1 warning generated.
ar rv libcuba.a llDivonne_.o
a - llDivonne_.o
rm -f llDivonne_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/cuhre -DNOUNDERSCORE -c -o Cuhre.o ./src/cuhre/Cuhre.c
ar rv libcuba.a Cuhre.o
a - Cuhre.o
rm -f Cuhre.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/cuhre -c -o Cuhre_.o ./src/cuhre/Cuhre.c
ar rv libcuba.a Cuhre_.o
a - Cuhre_.o
rm -f Cuhre_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/cuhre -DLONGLONGINT -DNOUNDERSCORE -c -o llCuhre.o ./src/cuhre/Cuhre.c
ar rv libcuba.a llCuhre.o
a - llCuhre.o
rm -f llCuhre.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/cuhre -DLONGLONGINT -c -o llCuhre_.o ./src/cuhre/Cuhre.c
ar rv libcuba.a llCuhre_.o
a - llCuhre_.o
rm -f llCuhre_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -DNOUNDERSCORE -c -o Fork.o ./src/common/Fork.c
ar rv libcuba.a Fork.o
a - Fork.o
rm -f Fork.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -c -o Fork_.o ./src/common/Fork.c
ar rv libcuba.a Fork_.o
a - Fork_.o
rm -f Fork_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -DNOUNDERSCORE -c -o Global.o ./src/common/Global.c
ar rv libcuba.a Global.o
a - Global.o
rm -f Global.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -c -o Global_.o ./src/common/Global.c
ar rv libcuba.a Global_.o
a - Global_.o
rm -f Global_.o
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -I./src/common -I. -I. -c -o Data.o ./src/common/Data.c
ar rv libcuba.a Data.o
a - Data.o
rm -f Data.o
ranlib libcuba.a
unpacking libcuba.a
making libcuba.so
gcc -shared -Wall __.SYMDEF SORTED Vegas.o Vegas_.o llVegas.o llVegas_.o Suave.o Suave_.o llSuave.o llSuave_.o Divonne.o Divonne_.o llDivonne.o llDivonne_.o Cuhre.o Cuhre_.o llCuhre.o llCuhre_.o Fork.o Fork_.o Global.o Global_.o Data.o -lm -o libcuba.so
clang: error: no such file or directory: '__.SYMDEF'
clang: error: no such file or directory: 'SORTED'
rm: __.SYMDEF: No such file or directory
rm: SORTED: No such file or directory
asked Jul 23, 2025 at 18:53
2
  • It turns out that PyCuba is not necessary to run PyMultiNest, but I'll keep this question up anyway. Commented Jul 23, 2025 at 19:43
  • I tried "pip install cuba" - this does not give you pycuba, but is an entirely different module. The cuba project on PyPi is by its own description a Modern web framework that uses brand new Python 3.x features Commented Jul 24, 2025 at 5:53

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.