You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dotnet-install.sh dependency checks are incorrect #6
When I build the coreclr component, I get dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib. soon after the script starts running, even though I do have zlib installed and the build finishes without any error.
I noticed it before (around 2~3 weeks ago? that's when I attempted to build coreclr on Linux for the first time) as well; it's just that I forgot to raise an issue until I saw the PR you mentioned 😄
Still, this looks like a bug in the dotnet-install.sh script. The warning won't go away even if you install the -dev package you have added in dotnet/runtime@efc260c
dotnet-install.sh does not seem to check the presence dependencies correctly. There are number of other problems, e.g. it checks for libcurl that is no longer required, etc.
Still, this looks like a bug in the dotnet-install.sh script. The warning won't go away even if you install the -dev package you have added in dotnet/runtime@efc260c
I agree and I noticed the same behavior locally a few weeks ago.
changed the title [-]`Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.` during CI / local builds[/-][+]Script fails to detect installed dependency(zlib), it also requires tools (libcurl) that are not needed[/+]on May 26, 2020
changed the title [-]Script fails to detect installed dependency(zlib), it also requires tools (libcurl) that are not needed[/-][+]Failure detecting installed dependency(zlib), also requiring tools (libcurl) that are not needed[/+]on May 28, 2020
changed the title [-]Failure detecting installed dependency(zlib), also requiring tools (libcurl) that are not needed[/-][+]Failure detecting installed dependency(zlib)[/+]on May 28, 2020
Does anyone know how to fix it, I am not able to install either zlib or libz. same for the command given to all package. How I can solve it on ubuntu 20.
The installation script does not resolve dependencies, so this warning is a part of the dependencies check. It concerns dotnet, not the script itself, so there is no reason for the script to fail.
Dependencies check indeed has problems. We decided to remove it and instead always ask the customer to visit the documentation page and to check the dependencies listed there.
Or this is something your team can fix internally?
Not something we can fix; its an issue with the GitHub action as it emits this warning when using the script on Ubuntu 18.04:
/home/runner/work/_actions/actions/setup-dotnet/v1.7.2/externals/install-dotnet.sh --version 5.0.100-rc.2.20479.15
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.2.20479.15/dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.2.20479.15/dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz
dotnet-install: Adding to current process PATH: `/home/runner/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
/home/runner/.dotnet:/opt/hostedtoolcache/node/12.19.0/x64/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
On Ubuntu 20 we get an additional warning:
/home/runner/work/_actions/actions/setup-dotnet/v1.7.2/externals/install-dotnet.sh --version 5.0.100-rc.2.20479.15
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet_install: Warning: Unable to locate liblttng. Probable prerequisite missing; install libcurl.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.2.20479.15/dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.2.20479.15/dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz
dotnet-install: Adding to current process PATH: `/home/runner/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
/home/runner/.dotnet:/opt/hostedtoolcache/node/12.19.0/x64/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Activity
ViktorHofer commentedon Apr 28, 2020
Funny that this comes up today as we just merged a documentation update regarding zlib: dotnet/runtime@efc260c 😁
Gnbrkm41 commentedon Apr 28, 2020
I noticed it before (around 2~3 weeks ago? that's when I attempted to build coreclr on Linux for the first time) as well; it's just that I forgot to raise an issue until I saw the PR you mentioned 😄
jkotas commentedon Apr 28, 2020
Still, this looks like a bug in the
dotnet-install.shscript. The warning won't go away even if you install the -dev package you have added in dotnet/runtime@efc260cdotnet-install.shdoes not seem to check the presence dependencies correctly. There are number of other problems, e.g. it checks for libcurl that is no longer required, etc.jkotas commentedon Apr 28, 2020
Moving to SDK repo where the
dotnet-install.shscript lives currently.Related: https://github.com/dotnet/arcade/issues/5152
ViktorHofer commentedon Apr 28, 2020
I agree and I noticed the same behavior locally a few weeks ago.
[-]`Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.` during CI / local builds[/-][+]Script fails to detect installed dependency(zlib), it also requires tools (libcurl) that are not needed[/+]donJoseLuis commentedon May 26, 2020
The need tracked in this issue should is tracked as a lower priority item under the re-engineering effort. Moving to the re-engineering project.
[-]Script fails to detect installed dependency(zlib), it also requires tools (libcurl) that are not needed[/-][+]Failure detecting installed dependency(zlib), also requiring tools (libcurl) that are not needed[/+]donJoseLuis commentedon May 28, 2020
Tracking the "requiring of tools that are not needed" separately, in #36
[-]Failure detecting installed dependency(zlib), also requiring tools (libcurl) that are not needed[/-][+]Failure detecting installed dependency(zlib)[/+]1 remaining item
Cuniq commentedon Jun 8, 2020
@yatli changing zlib to libz solved everything
anirugu commentedon Aug 25, 2020
Does anyone know how to fix it, I am not able to install either zlib or libz. same for the command given to all package. How I can solve it on ubuntu 20.
Cuniq commentedon Aug 25, 2020
@anirugu try sudo apt install zlib1g
danmoseley commentedon Aug 31, 2020
I have done
sudo apt install zlib1gand that is probably correct per @Cuniq above and the documentation hereHowever the script checks with
ldconfig -v | grep zliband that does not appear to find it. I am guessing this is expected.In general as pointed out above the script does not check for everything required
https://github.com/dotnet/install-scripts/blob/master/src/dotnet-install.sh#L270-L274
\eg for Ubuntu they are listed here
https://github.com/dotnet/install-scripts/blob/master/src/dotnet-install.sh#L270-L274
The title of this issue should perhaps be "dotnet-install.sh dependency checks are incorrect"
[-]Failure detecting installed dependency(zlib)[/-][+]dotnet-install.sh dependency checks are incorrect[/+]SamuelJohnsonMedia commentedon Oct 7, 2020
This needs resolving on Github Actions too.
issues dotnet#72, dotnet#6, dotnet#36: removing dependencies check, a…
AR-May commentedon Oct 29, 2020
The installation script does not resolve dependencies, so this warning is a part of the dependencies check. It concerns dotnet, not the script itself, so there is no reason for the script to fail.
Dependencies check indeed has problems. We decided to remove it and instead always ask the customer to visit the documentation page and to check the dependencies listed there.
issues dotnet#72, dotnet#6, dotnet#36: removing dependencies check, a…
AR-May commentedon Nov 2, 2020
@SamuelJohnsonMedia, is there anything we can do to help you with this:
Or this is something your team can fix internally?
SamuelJohnsonMedia commentedon Nov 2, 2020
Not something we can fix; its an issue with the GitHub action as it emits this warning when using the script on Ubuntu 18.04:
On Ubuntu 20 we get an additional warning:
AR-May commentedon Nov 6, 2020
I see. Well, I suppose we do not hit this issue with GitHub actions anymore: these were only warnings that we showed and now they are removed.