ocaml требуется для сборки liquidsoap
Добрый день.
Очень нужен liquidsoap. При попытке его собрать требуется ocaml, которого также нет в репозитории.
Пытаюсь собрать ocaml, но получаю ошибку, что не найдена библиотека
Code:
../boot/ocamlrun: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory
Но библиотека есть. Она лежит в /opt/lib куда собственно и ставится всё после перехода на entware:
Code:
bazyak@Woodrose:~$ ll /opt/lib/libncursesw*
lrwxrwxrwx 1 root root 16 Apr 7 15:17 /opt/lib/libncursesw.so -> libncursesw.so.6
lrwxrwxrwx 1 root root 18 Apr 7 15:17 /opt/lib/libncursesw.so.6 -> libncursesw.so.6.0
-rwxr-xr-x 1 root root 329600 Feb 10 21:26 /opt/lib/libncursesw.so.6.0
Я не особо шарю в процессах сборки софта, но указать ему правильный путь к библиотекам не получается. То есть банальный libdir не помогает:
Code:
./configure -bindir /opt/bin -libdir /opt/lib
В экспорте вот что:
Code:
bazyak@Woodrose:~$ export
export CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -mfloat-abi=soft"
export HOME="/var/services/homes/bazyak"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LDFLAGS="-Wl,-rpath=/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -L/opt/lib"
export PATH="/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin"
export PGDATA="/var/services/pgsql"
export PWD="/var/services/homes/bazyak"
export SHELL="/bin/sh"
Подскажите, плиз. Буду очень признателен.
Делаю всё это на Synology, архитектура arm (armv7), вот результат configure:
Code:
** Configuration summary **
Directories where OCaml will be installed:
binaries.................. /opt/bin
standard library.......... /opt/lib
manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -O2 -fno-strict-aliasing -fwrapv
options for linking....... -Wl,-E -lm -ldl -lcurses -lpthread
shared libraries are supported
options for compiling..... -fPIC -O2 -fno-strict-aliasing -fwrapv
command for building...... gcc -shared -o lib.so -Wl,-rpath,/a/path objs
Configuration for the native-code compiler:
hardware architecture..... arm (armv7)
OS variant................ linux_eabi
C compiler used........... gcc
options for compiling..... -O2 -fno-strict-aliasing -fwrapv
options for linking....... -lm
assembler ................ as
preprocessed assembler ... gcc -c
assembler supports CFI ... yes
with frame pointers....... no
naked pointers forbidden.. no
spacetime profiling....... no
reserved bits in header... no
C plugins................. yes
compile with -fPIC........ no
native dynlink ........... true
profiling with gprof ..... supported
using flambda middle-end . no
safe strings ............. no
afl-fuzz always enabled .. no
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray systhreads threads
Configuration for the "num" library:
target architecture ...... generic (asm level 0)
The "graph" library: not supported
** OCaml configuration completed successfully **
UPD:
Указал флаги CFLAGS и LDFLAGS через параметры -dldefs и -dllibs соответственно. В итоге ocaml собрался и установился.