Ubuntu VM 내에서 C 클라이언트를 사용하여 얻은 내 노트는 다음과 같습니다. Aerospike 서버도이 VM에 설치되어 실행 중입니다.
Using eclipse to develp C code:
sudo apt-get install eclipse eclipse-cdt g++
Note: C Client does not support AsuRM processors.
I am working inside a Ubuntu 16.04 VM.
$lsb_release -a ⇒ shows my ubuntu version
[email protected]:/var/log/aerospike$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Required library:
$cd ~
$sudo apt-get install libssl-dev
Download C Client and install for Ubuntu 16.x: http://www.aerospike.com/docs/client/c/install
It was downloaded in my ~/Downloads directory.
$cd Downloads/
$ls
$tar xvf aerospike-client-c-4.1.1.ubuntu16.04.x86_64.tgz
$cd aerospike-client-c-4.1.1.ubuntu16.04.x86_64/
$ sudo dpkg -i aerospike-client-c-devel-4.1.1.ubuntu16.04.x86_64.deb
$ cd examples
$ make
$cd basic_examples/
$cd put
$cd target/
$ sudo service aerospike start (I have a server running in my ubuntu 16 VM)
$./example
Output shows I was able to read and write records to the server.
다른 사람들이 쉽게 시도 할 수 있도록 질문에 코드를 붙여주십시오. – sahaj
코드의 텍스트를 복사하여 붙여 넣은 다음 스크린 샷 대신 오류가 발생하는 것이 좋습니다. – Iguananaut
오픈 소스 코드를 사용하고 있습니다. 잘 쓰여진 버그 보고서를 열어서 기여할 수 있습니다. https://github.com/aerospike/aerospike-client-c/issues –