Giter Club home page Giter Club logo

Comments (8)

jonatanblockchain avatar jonatanblockchain commented on June 29, 2024 1

Erik,
You are right, you have to install leveldb-devel. Tested on a fresh installation and is working. I will update documentation asap. You can close the issue, and use this one as a reference from CentOS installations.

Step-by-step CentOS 7.3 Instalation.

[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
sudo yum update -y
sudo yum install epel-release unzip wget -y

sudo yum install leveldb-devel libunwind libicu -y 
sudo curl -sSL -o dotnet.tar.gz https://aka.ms/dotnet-sdk-2.0.0-linux-x64
mkdir -p ~/dotnet && tar zxf dotnet.tar.gz -C ~/dotnet
export PATH=$PATH:$HOME/dotnet

sudo wget https://github.com/neo-project/neo-cli/releases/download/v2.1.0/neo-cli-centos.7-x64.zip
sudo unzip neo-cli-centos.7-x64.zip -d /opt/
cd /opt/neo-cli/
dotnet neo-cli.dll

centos

Step-by-step Ubuntu 16.04.03 LTS instalation.

user@ubuntu:/lsb_release -a
Description: Ubuntu 16.04.3 LTS
sudo apt-get update
sudo apt-get install libleveldb-dev libleveldb1v5 libicu-dev wget unzip -y

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' 

sudo apt-get update
sudo apt-get install dotnet-sdk-2.0.0 -y

sudo wget https://github.com/neo-project/neo-cli/releases/download/v2.1.0/neo-cli-ubuntu.16.04-x64.zip
sudo unzip neo-cli-ubuntu.16.04-x64.zip -d /opt/
cd /opt/neo-cli/
sudo dotnet neo-cli.dll /rpc

ubuntu

Step-by-step RHEL 7.4 Instalation

[root@]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 (Maipo)
yum install wget unzip -y
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh epel-release-latest-7*.rpm

yum install leveldb leveldb-devel libunwind libicu -y

subscription-manager repos --enable=rhel-7-server-dotnet-rpms
yum install scl-utils -y
scl enable rh-dotnetcore11 bash
echo "source scl_source enable rh-dotnetcore11" >> ~/.bashrc
wget https://github.com/neo-project/neo-cli/releases/download/v2.1.0/neo-cli-rhel.7.2-x64.zip
unzip neo-cli-rhel.7.2-x64.zip -d /opt/
cd /opt/neo-cli/
dotnet neo-cli.dll

2017-08-18 14_39_07-root redhat__opt_neo-cli

from neo-node.

erikzhang avatar erikzhang commented on June 29, 2024

see #6

from neo-node.

erikzhang avatar erikzhang commented on June 29, 2024

Thank you very much!

from neo-node.

i3bitcoin avatar i3bitcoin commented on June 29, 2024

W: GPG error: https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Anyway, after installation, got the same Segmentation failed error (
Ubuntu 16.04

from neo-node.

jonatanblockchain avatar jonatanblockchain commented on June 29, 2024

Please, post the output of sudo dotnet --info

from neo-node.

i3bitcoin avatar i3bitcoin commented on June 29, 2024

.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9

Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/2.0.0/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

from neo-node.

erikzhang avatar erikzhang commented on June 29, 2024

You have installed .Net Core SDK 2.0, but we need 1.1
Don't worry, we will upgrade to 2.0 soon.

from neo-node.

devfive avatar devfive commented on June 29, 2024

Hi,

I am struggling with neo-cli for some time and unfortunately didn't manage to run it as for now.

When I run dotnet neo-cli.dll I get Segmentation fault error. More info is available when I used diagnostics flag.

root@host:/home/neo/node# dotnet -d neo-cli.dll 
Telemetry is: Disabled
projectfactory: MSBUILD_EXE_PATH = /usr/share/dotnet/sdk/1.1.4/MSBuild.dll
projectfactory: MSBuild project path = 
projecttoolscommandresolver: ProjectFactory did not find Project.
Microsoft.DotNet.Cli.Utils.CommandUnknownException: No executable found matching command "dotnet-neo-cli.dll"
   at Microsoft.DotNet.Cli.Utils.Command.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Utils.Command.Create(String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)
root@host:/home/neo/node# dotnet --info
.NET Command Line Tools (1.1.4)

Product Information:
 Version:            1.1.4
 Commit SHA-1 hash:  d2f3571419

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/1.1.4

Do you have any ideas what can be wrong?

Thanks in advance,
Regards

from neo-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.