-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install .NET Core 2.0 on Amazon Linux AMI #930
Comments
You might have better luck following the instructions here: Amazon Linux already has a later version of curl, so you might need libcurl-devel installed as well. |
I managed to install .NET Core 2.0 using the source code as instructed here. I didn't find any complexity in that way. It hardly took 10 minutes to get everything setup. |
I was almost desperate. Afterwards, I download the .NET Core 2.0 runtime directly with following link: And, use the old fashion way like installing .net core 1.1 with commands:
It worked. Very simple like you used to do. |
Does not work with Amazon Linux when following these instructions.
|
If you already have openssl you can try to run yum with --skip-broken (as the message suggests) |
BTW AMI Linux is NOT one of the supported and test platforms. There should be no surprise that there are some bumps. This is one reason for publishing the tar file so you do not need to fight package dependencies. |
If you want to use AWS, drop it in Docker and use ECS. |
Like hchungi said, I just did: Download .NET Core 2.0.0 runtime libraries (always check if URL is right, maybe it can be changed): Create folder to .NET Core and extract your tar.gz:
Finally, export dotnet to globally variable: Just it :) |
This is exactly how I did this around a month ago.
Thank you very much to confirm the solution.
…On 06-Oct-2017 21:31, "Bruno Paschoali Regis" ***@***.***> wrote:
Like hchungi said, I just did:
Download .NET Core 2.0.0 runtime libraries (always check if URL is right,
maybe it can be changed):
wget https://download.microsoft.com/download/5/F/0/5F0362BD-
7D0A-4A9D-9BF9-022C6B15B04D/dotnet-runtime-2.0.0-linux-x64.tar.gz
Create folder to .NET Core and extract your tar.gz:
mkdir -p $HOME/dotnet && tar zxf dotnet-runtime-2.0.0-linux-x64.tar.gz -C
$HOME/dotnet
Finally, export dotnet to globally variable:
export PATH=$PATH:$HOME/dotnet
Just it :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#930 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpaVdhf_5I669PIpGH-5LqGA8H83mSCks5spk7JgaJpZM4PK47F>
.
|
Sounds like people have found a good solution. I'm going to close this out now. |
But I wish if I could install this simply using package manager on AWS AMI.
…On 06-Oct-2017 21:55, "Peter Marcu" ***@***.***> wrote:
Sounds like people have found a good solution. I'm going to close this out
now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#930 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpaVZb1hBFEZ3GcMuot2i26cZiFmhQiks5splSFgaJpZM4PK47F>
.
|
Any chance you could try a distribution other than Amazon Linux? The .NET Core project publishes packages for several distributions (such as CentOS, Debian, Ubuntu) and several other distributions are now starting to carry .NET Core too (such as Arch, CentOS, Fedora, RHEL). I dont know if we have a way to contribute packages to Amazon Linux directly. |
Yes, I've been told the Centos one works: https://www.microsoft.com/net/core#linuxcentos |
I would assume that someone needs to work with AWS to get .NET Core into their package feed. |
Yes, I thought about that and researched on that too.
But, many resources suggests that AWS AMI perofoms best in AWS
infrastructures.
…On 06-Oct-2017 22:05, "Omair Majid" ***@***.***> wrote:
Any chance you could try a distribution other than Amazon Linux? The .NET
Core project publishes packages for several distributions (such as CentOS,
Debian, Ubuntu) and several other distributions are now starting to carry
.NET Core too (such as Arch, CentOS, Fedora, RHEL). I dont know if we have
a way to contribute packages to Amazon Linux directly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#930 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpaVbvaBiUBObEdMh3psUzFHrdJJFd2ks5spla3gaJpZM4PK47F>
.
|
I use the Aliyun ECS,The OS version is Centos 6.8. I also met this problem.The Information like this: |
Aliyun ECS? Whatever, did you read the comments? We suggested some solutions. Sure that of them will help you. |
Is there a SRPM for the dotnet-runtime package? Or is there a spec file in the repo somewhere? I couldn't find one. |
We use The configuration for Here is the source that reads that config files above to build command line for |
The old links may not work so go here https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md and use the SDK binary link for the latest tar.gz file. |
I am a client programmer. |
Unfortunately I didn't make this working. Using hortonworks sandbox withCentOS.
|
Installing Net Core 2.1 on Amazon Linux still seems to be an issue :( |
What base OS do you use and what .Net package? Did you check that everything works using tar distro? I'm trying to figure out if this is pure packaging issue or if there are really missing dependencies. |
I did Output is below:
|
cc: @tmds. seems like it cannot find dotnet-runtime-deps-2.1 -2.1.2 |
just followed the instructions here https://www.microsoft.com/net/download/linux-package-manager/centos/sdk-current |
Looks like the updated runtime-deps and sdk didn't make the upload. Checking into this now. |
Alrighty, sorry about that. Give it another whirl now. |
A bit better but now says runtime needs openssl-libs.
I added yum install openssl-libs but it says "No package openssl-libs
available."
…On 11 July 2018 at 18:21, Lee Coward ***@***.***> wrote:
Alrighty, sorry about that. Give it another whirl now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#930 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGaphtEXiz4S0ulpYRPsNe1S-pIqkIcks5uFjQhgaJpZM4PK47F>
.
|
That goes back to original issue. AMI Linux names packages different than RedHat. Now, assuming you have correct openssl 1.0.x installed you can try following trick: Download attached spec file.
and try the install again. |
The @wfurt solution worked for me, just run |
Perfect also in my case. The folder was different, as stated : sudo yum install rpm-build |
Provides: openssl-libs = 1.0.0-0 openssl-libs(x86-64) = 1.0.0-0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /usr/src/rpm/BUILDROOT/openssl-libs-1.0.0-0.x86_64
Wrote: /usr/src/rpm/RPMS/x86_64/openssl-libs-1.0.0-0.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.13DnAm for whatever reason this chose today to start hanging forever during deployments. I don't see an actual %clean step in the rpm spec. |
Folks who are trying to install azure powershell and have ended up here can use @juancrl mentioned solution, it surely works ! |
For me the path of created openssl-libs was different. So I had to find it first (as suggested by wfurt) wget https://github.com/dotnet/core/files/2186067/openssl-libs-ami.spec.txt
rpmbuild --bb openssl-libs-ami.spec.txt
sudo find / -iname RPMS # output: /usr/src/rpm/RPMS
sudo rpm -i /usr/src/rpm/RPMS/x86_64/openssl-libs-1.0.0-0.x86_64.rpm
sudo yum install -y powershell |
I am trying to update from .NET Core 2.0 Preview 2 Final to 2.0 Final Release on the Amazon EC2 instance due to some dependency issue.
When I run install command
sudo yum install dotnet-sdk-2.0.0
it produces following error.And, when I try to install
openssl-libs
using package manager with commandyum install openssl-libs
, it saysNo package openssl-libs available
.I've checked package repository and didn't found any package with name
openssl-libs
there. However,openssl
is installed already in the machine, I confirmed that by runningopenssl version
command. The version is1.0.1k-fips 8 Jan 2015
.Please suggest how to resolve this dependency.
The text was updated successfully, but these errors were encountered: