не работает приложение, которое использует более позднюю версию libcurl

Sivel

New member
Сообщения
9
#1
Установил Github Desktop для линукс из пакета .deb. Качал с этого репозитория: https://github.com/shiftkey/desktop
Установилось без проблем через установщик пакетов synapsys. Авторизация в github прошла тоже без проблем. Но когда пытаешься склонировать репозиторий с гитхаба или с другого сервиса (юзал ещё GitFlic - отечественный очень хороший сервис), то он пишет что ошибка клонирования - что-то не так с файлом для работы https.
Вот что пишет:

Код:
Cloning into '/home/sivel/Desktop/test'...
/usr/lib/github-desktop/resources/app/git/libexec/git-core/git-remote-https: symbol lookup error: /usr/lib/github-desktop/resources/app/git/libexec/git-core/git-remote-https: undefined symbol: curl_global_sslset
Также прилагаю скриншот

Не знаю в чём проблема. В ОС Роса и Ubuntu всё работает, а здесь нет. (уже на форуме github разобрался с проблемой, описано в чём проблема ниже, но решить пока не удалось)

Помогите, пожалуйста, мне это нужно, т.к. я собираюсь работать с гитом на Астре!
 

Вложения

Последнее редактирование:

Sivel

New member
Сообщения
9
#2
Пообщался на форуме, мне сказали что проблема в том, что в Астре более старая версия libcurl, я пытался обновить, но не получилось
пишет при обновлении это:

Код:
sivel@astra:~$ sudo apt install curl   Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлен пакет curl самой новой версии (7.52.1-5+deb9u16).
Следующие пакеты устанавливались автоматически и больше не требуются:
  libva-glx2 mesa-vulkan-drivers
Для их удаления используйте «sudo apt autoremove».
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Также скрин ниже:

Посмотреть вложение 1678649351185.png
 

Sivel

New member
Сообщения
9
#4
Пробуйте ставить из репы Debian соответствующей версии
А как это сделать? Я думал добавить репозитории этой библиотеки, потому что, как я понял, Астра не подключается к репозиториям чужим, а копирует библиотеки на свой и только с него можно скачать обновления, так понимаю для стабильности сделано. (Понял это, т.к. написанно что libcurl3 последний установлен) Но можно и доп репозитории подключить, только я не нашёл реп этой библиотеки, вот ищу.

В следующем сообщении отправлю продолжение мысли
 

Sivel

New member
Сообщения
9
#5
А как это сделать? Я думал добавить репозитории этой библиотеки, потому что, как я понял, Астра не подключается к репозиториям чужим, а копирует библиотеки на свой и только с него можно скачать обновления, так понимаю для стабильности сделано. (Понял это, т.к. написанно что libcurl3 последний установлен) Но можно и доп репозитории подключить, только я не нашёл реп этой библиотеки, вот ищу.

В следующем сообщении отправлю продолжение мысли

Нашёл исходники которые можно собрать, но по инструкции собрать не получается. Юзал этот сайт , использовал:
Код:
wget https://curl.se/download/curl-7.84.0.zip
unzip curl-7.84.0.zip
cd curl-7.84.0
./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2
make
make install
после ./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2 пишет:
Код:
sivel@astra:~/Загрузки/curl-7.84.0$ ./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable ECH support... no
checking for path separator... :
checking for sed... /bin/sed
checking for grep... /bin/grep
checking for egrep... /bin/grep -E
checking for ar... /usr/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking if _Atomic is available... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for code coverage support... no
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking curl version... 7.84.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... /bin/grep -E
checking if OS is AIX (to define _ALL_SOURCE)... no
checking if _THREAD_SAFE is already defined... no
checking if _THREAD_SAFE is actually needed... no
checking if _THREAD_SAFE is onwards defined... no
checking if _REENTRANT is already defined... no
checking if _REENTRANT is actually needed... no
checking if _REENTRANT is onwards defined... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_conv
ert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @

<тут вырезана часть кода, т.к. не могу так много отправить>

checking for lber.h... no
checking for ldap.h... no
checking for ldapssl.h... no
checking for ldap_ssl.h... no
checking for LDAP libraries... cannot find LDAP libraries
configure: error: couldn't detect the LDAP libraries
В конце какая-то ошибка

потом после make:
Код:
sivel@astra:~/Загрузки/curl-7.84.0$ make
./configure
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable ECH support... no
checking for path separator... :
checking for sed... /bin/sed
checking for grep... /bin/grep
checking for egrep... /bin/grep -E
checking for ar... /usr/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking if _Atomic is available... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for code coverage support... no
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking curl version... 7.84.0
configure: error: select TLS backend(s) or disable TLS with --without-ssl.

Select from these:

  --with-amissl
  --with-bearssl
  --with-gnutls
  --with-mbedtls
  --with-nss
  --with-openssl (also works for BoringSSL and libressl)
  --with-rustls
  --with-schannel
  --with-secure-transport
  --with-wolfssl

Makefile:26: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 1
снова какая-то ошибка

и потом использовал make install:
Код:
sivel@astra:~/Загрузки/curl-7.84.0$ make install
make: *** Нет правила для сборки цели «install».  Останов.
Сплошные ошибки какие-то((((
 

ALSE_User

New member
Сообщения
534
#6
> ./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2
> checking for LDAP libraries... cannot find LDAP libraries
> configure: error: couldn't detect the LDAP libraries
> configure: error: select TLS backend(s) or disable TLS with --without-ssl

Вы указали что библиотеку надо собрать с поддержкой ldap и ssl, но в системе нет этих библиотек (скорее всего пакетов *dev*)
 

ALSE_User

New member
Сообщения
534
#7
А как это сделать? Я думал добавить репозитории этой библиотеки, потому что, как я понял, Астра не подключается к репозиториям чужим, а копирует библиотеки на свой и только с него можно скачать обновления, так понимаю для стабильности сделано. (Понял это, т.к. написанно что libcurl3 последний установлен) Но можно и доп репозитории подключить, только я не нашёл реп этой библиотеки, вот ищу.

В следующем сообщении отправлю продолжение мысли
Матчасть все-таки необходимо учить прежде чем что-то делать;)

https://wiki.astralinux.ru/pages/viewpage.action?pageId=3276859
 

Sivel

New member
Сообщения
9
#8
> ./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2
> checking for LDAP libraries... cannot find LDAP libraries
> configure: error: couldn't detect the LDAP libraries
> configure: error: select TLS backend(s) or disable TLS with --without-ssl

Вы указали что библиотеку надо собрать с поддержкой ldap и ssl, но в системе нет этих библиотек (скорее всего пакетов *dev*)
Я уже смог собрать по другому гайду, только вот обновился только curl а libcurl нет. Почему так - хз вообще.
Где мне вообще найти этот libcurl для обновления?
Вот что пишет curl -version:
Код:
sivel@astra:~$ curl --version
curl 7.71.0 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2u zlib/1.2.8 libid
n2/2.0.5 libpsl/0.21.0 (+libidn2/2.0.5) libssh2/1.7.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2020-06-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
WARNING: curl and libcurl versions do not match. Functionality may be affected.
curl: symbol lookup error: curl: undefined symbol: curl_mime_free
Качал от сюда библиотеку в формате source. Пользовался этим гайдом.
 

Sivel

New member
Сообщения
9
#9
Матчасть все-таки необходимо учить прежде чем что-то делать;)

https://wiki.astralinux.ru/pages/viewpage.action?pageId=3276859
Я подключил репозитории дебиан как в той инструкции, через менеджер репозиториев подключал, вот скрин:
Посмотреть вложение 1678691636484.png

Но libcurl там всё равно не последней версии, а 7.52:
Посмотреть вложение 1678691712063.png
 

Sivel

New member
Сообщения
9
#11

countmein

New member
Сообщения
328
#14
В репозитории Дебиана 10 (buster) есть curl 7.64, но при попытке установить требует удаления 85 пакетов, в том числе всего Fly, так что не вариант.