Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.95k stars 1.86k forks source link

java.lang.UnsatisfiedLinkError: 'void com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(java.lang.String)' #1939

Closed meliauk closed 1 year ago

meliauk commented 1 year ago

environment:CentOS Linux release 7.5.1804 (Core),jdk11,com.microsoft.cognitiveservices.speech-1.27.0(java) Successfully run on window10,CentOS7 failed to run errors:java.lang.UnsatisfiedLinkError: 'void.com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(java.lang.String)' java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.cognitiveservices.speech.SpeechConfig

Reference has been made to “https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-configure-rhel-centos-7” for environmental configuration

But There is no such file( /etc/ld.so.conf.d/local-x86_64.conf) Strings/usr/local/lib64/libstdc++. so. 6 | grep The execution of GLIBCXX is the same

image image

pankopon commented 1 year ago

@meliauk Please upgrade to the latest CentOS 7 point release:

# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

Then follow the instructions to Configure RHEL/CentOS 7. You need to build GCC 7.5.0 compiler and runtimes on CentOS 7.9.

Ref. https://learn.microsoft.com/azure/cognitive-services/speech-service/quickstarts/setup-platform?pivots=programming-language-java&tabs=linux :

Use the most recent LTS release of the Linux distribution. For example, if you are using Ubuntu 20.04 LTS, use the latest release of Ubuntu 20.04.X.

pankopon commented 1 year ago

Closed as resolved since no further updates in 2 weeks, please open a new issue if more support is needed.

chenjunhua8080 commented 1 year ago

@meliauk 解决了么哥

meliauk commented 1 year ago

没哩,卡着的状态,建议说是 升级linux系统  

王余凡 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年8月7日(星期一) 下午5:56 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Azure-Samples/cognitive-services-speech-sdk] java.lang.UnsatisfiedLinkError: 'void com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(java.lang.String)' (Issue #1939)

@meliauk 解决了么哥

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

chenjunhua8080 commented 1 year ago

可恶(〃>皿<),最新版centos 7了也不行

meliauk commented 1 year ago

还有什么办法嘛?解决了告知我下哩 

王余凡 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年8月7日(星期一) 晚上6:05 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Azure-Samples/cognitive-services-speech-sdk] java.lang.UnsatisfiedLinkError: 'void com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(java.lang.String)' (Issue #1939)

可恶(〃>皿<),最新版centos 7了也不行

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

cikichen commented 1 year ago

springboot+docker. centos7. java.lang.NoClassDefFoundError: com.microsoft.cognitiveservices.speech.SpeechConfig