补充20181112:我在安装Alexa的过程中,follow this guidence “Ubuntu Linux Quick Start Guide”,this error occured。

但是按照下面修复了之后才发现出现了另一个错误,

1
2
C SampleApplication:Failed to initialize SampleApplication
Failed to create to SampleApplication!

最后试了好多次才发现,由于之前git clone https://github.com/tatsuhiro-t/nghttp2.git

git clone git://github.com/alexa/avs-device-sdk.git
速度太慢了,几k/s,所以用了同事前段时间下载的包。最后我把这两个包换成最新的包,Alexa就成功运行Sample了——

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
$ ./SampleApp/src/SampleApp Integration/AlexaClientSDKConfig.json

2018-11-13 03:41:10.454 [ 1] I sdkVersion: 1.10.0
configFile Integration/AlexaClientSDKConfig.json
#################################################
# NOTIFICATION INDICATOR STATE: OFF #
#################################################

##################################
# NOT YET AUTHORIZED #
##################################

################################################################################################
# To authorize, browse to: 'https://amazon.com/us/code' and enter the code: AMCEMH #
################################################################################################

#################################################
# Checking for authorization (1)... #
#################################################

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
# # # ##### ##### ###### # #
# # # # # # # # # # # #
# # # # # # # # # #
# # # # ##### ##### # # ###
####### # # # # # # # #
# # # # # # # # # # # #
# # # ##### ##### ###### # #

##### #
# # ## # # ##### # ###### # # ##### #####
# # # ## ## # # # # # # # # # #
##### # # # ## # # # # ##### # # # # # #
# ###### # # ##### # # ####### ##### #####
# # # # # # # # # # # # #
##### # # # # # ###### ###### # # # #

SDK Version 1.10.0

+----------------------------------------------------------------------------+
| Options: |
| Tap to talk: |
| Press 't' and Enter followed by your query (no need for the 'Alexa').|
| Hold to talk: |
| Press 'h' followed by Enter to simulate holding a button. |
| Then say your query (no need for the 'Alexa'). |
| Press 'h' followed by Enter to simulate releasing a button. |
| Stop an interaction: |
| Press 's' and Enter to stop an ongoing interaction. |
| Playback Controls: |
| Press '1' for a 'PLAY' button press. |
| Press '2' for a 'PAUSE' button press. |
| Press '3' for a 'NEXT' button press. |
| Press '4' for a 'PREVIOUS' button press. |
| Settings: |
| Press 'c' followed by Enter at any time to see the settings screen. |
| Speaker Control: |
| Press 'p' followed by Enter at any time to adjust speaker settings. |
| Firmware Version: |
| Press 'f' followed by Enter at any time to report a different |
| firmware version. |
| Info: |
| Press 'i' followed by Enter at any time to see the help screen. |
| Reset device: |
| Press 'k' followed by Enter at any time to reset your device. This |
| will erase any data stored in the device and you will have to |
| re-register your device. |
| This option will also exit the application. |
| Reauthorize device: |
| Press 'z' followed by Enter at any time to re-authorize your device. |
| This will erase any data stored in the device and initiate |
| re-authorization. |
| Quit: |
| Press 'q' followed by Enter at any time to quit the application. |
+----------------------------------------------------------------------------+

#################################################
# Checking for authorization (2)... #
#################################################

#################################################
# Checking for authorization (3)... #
#################################################

#################################################
# Checking for authorization (4)... #
#################################################

#################################################
# Checking for authorization (5)... #
#################################################



----------------华丽的分割线----------------------


原文20181111——

get help from error: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl)

I also had such problem in installing CMAKE, I type cmake, the output is:

1
2
cmake: /usr/local/lib/libcurl.so.4: no version information available     (required by cmake)
Segmentation fault (core dumped)`

Something like yours.
First,I locate the path of libcurl.so.4:
locate libcurl.so.4

the result is:

1
2
3
4
5
6
/home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4
/home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4.2.0
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0
/usr/local/lib/libcurl.so.4
/usr/local/lib/libcurl.so.4.2.0

Second, find the link of libcurl.so.4,type:
ls -l /usr/local/lib/libcurl.so.4

the result:
lrwxrwxrwx 1 root root 16 Aug 16 21:15 /usr/local/lib/libcurl.so.4 -> libcurl.so.4.2.0

Third, remove it and rebuild the link to libcurl.so.4.3.0:

1
2
sudo rm -rf /usr/local/lib/libcurl.so.4
sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0 /usr/local/lib/libcurl.so.4

Next, check it:
ls -l /usr/local/lib/libcurl.so.4

well, the output is:

1
lrwxrwxrwx 1 root root 42 Aug 24 09:23 /usr/local/lib/libcurl.so.4 -> /usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0

Then, I typecmake -version, and the result is

1
2
3
cmake version 3.2.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

After fixing the bug, I think it may be caused by multi-version of curl, like me, the origin ubuntu environment had one, but I install another one.

Thx for CHENJIAN