leleliu008 / ndk-pkg

A package builder/manager for Android NDK to build projects written in C, C++, Rust, Golang, etc.
http://blog.fpliu.com/project/ndk-pkg
Apache License 2.0
88 stars 14 forks source link

ndk-pkg install gnutls failed? #7

Closed TapuA closed 3 years ago

TapuA commented 3 years ago

I follow this guide to install gnutls, but fail when install nettle. I can't solve

http://blog.fpliu.com/project/ndk-pkg/package?name=gnutls

Ubuntu 20.04
NDK android-ndk-r21e

errors:

=>> STEP 9 : build for native πŸ”₯ no build0 function defined in formula, skipped.

=>> STEP 12 : calculate dependencies πŸ”₯ graphviz is not installed. we do not generate png format dependency image. β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ nettle β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ gmp β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜

[✘] install nettle/armeabi-v7a failed! you can go to /tmp/tmp.w4KPQ6KaXM to see see.

TapuA commented 3 years ago

end with

configure: exit 1

leleliu008 commented 3 years ago

step1. upgrade the ndk-pkg to the latest version

ndk-pkg upgrade-self   οΌƒfor older version
ndk-pkg upgrade οΌ self  #for newer version

step2. update the formula-repository to the latest version

ndk-pkg update

step3. install packages what you want

ndk-pkg install gnutls

when facing problems, try above steps first.

leleliu008 commented 3 years ago

gnutls is built successfully on ubuntu-20.04 in my Github Actions CI

if you still facing problems after trying above steps, please attach full install logs here, the install logs location is ~/.ndk-pkg/cache.d/log.d/$PACKAGE

TapuA commented 3 years ago

upgrade-self failed. Can access to github.com, but can not access to upgrade url

root@ub:/home/liuhao# ndk-pkg upgrade-self ==> mktemp -d ==> cd /tmp/tmp.tkUzhhe775 ==> curl --fail --retry 20 --retry-delay 30 --location -o /tmp/tmp.tkUzhhe775/self 'https://raw.githubusercontent.com/leleliu008/ndk-pkg/master/bin/ndk-pkg' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to raw.githubusercontent.com:443

leleliu008 commented 3 years ago

Do you in China at the moment? If yes, please try running ndk-pkg upgrade-self --china, --china argument will force ndk-pkg using GitHub's Chinese mirror.

TapuA commented 3 years ago

Yes. It works with -china, thank you very much.

TapuA commented 3 years ago

upgrade-self works. install nettle gnutls still fail. I email log to you because of attach log here also fail.

TapuA commented 3 years ago

install_nettle_fail.txt

attach files successfully when open v2ray...

leleliu008 commented 3 years ago
configure: error: Cannot find 'makeinfo', required for documentation.

You must install makeinfo command on your build machine.

makeinfo command is ususally part of the texinfo package in your distribution.

try following instruction to install :

sudo apt -y install texinfo
TapuA commented 3 years ago

thank you !!!