LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2015, 04:39 PM   #61
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176

No, I'm not a RH packager and I don't have a group by the name of mockbuld.

I tried yum install *sphinx*.rpm it didn't work so I used the rpm -Uvh cmd.

Code:
[root@localhost Downloads]# yum install *sphinx*.rpm
Loaded plugins: fastestmirror, langpacks
Examining pocketsphinx-0.8-9.fc22.src.rpm: pocketsphinx-0.8-9.fc22.src
Cannot add package pocketsphinx-0.8-9.fc22.src.rpm to transaction. Not a compatible architecture: src
Examining sphinxbase-0.8-9.fc22.src.rpm: sphinxbase-0.8-9.fc22.src
Cannot add package sphinxbase-0.8-9.fc22.src.rpm to transaction. Not a compatible architecture: src
Error: Nothing to do
[root@localhost Downloads]# rpm -Uvh sphinxbase-0.8-9.fc22.src.rpm
warning: sphinxbase-0.8-9.fc22.src.rpm: Header V3 RSA/SHA256 Signature, key ID 8e1431d5: NOKEY
Updating / installing...
   1:sphinxbase-0.8-9.fc22            ################################# [100%]
warning: user mockbuild does not exist - using root
I'll try the Simon build.sh script now-
 
Old 11-08-2015, 04:46 PM   #62
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm not sure but I think I need sphinxrecognizer? Right?

Code:
/home/linuxcat/Downloads/simon-0.4.1/simonlib/simonrecognizer/sphinxrecognizer.cpp:111:43: error: too many arguments to function ‘const char* ps_get_hyp(ps_decoder_t*, int32*)’
   hyp = ps_get_hyp(decoder, &score, &uttid);
                                           ^
In file included from /home/linuxcat/Downloads/simon-0.4.1/simonlib/simonrecognizer/sphinxrecognizer.h:27:0,
                 from /home/linuxcat/Downloads/simon-0.4.1/simonlib/simonrecognizer/sphinxrecognizer.cpp:20:
/usr/local/include/pocketsphinx/pocketsphinx.h:408:13: note: declared here
 char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score);
             ^
make[2]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o] Error 1
make[1]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/all] Error 2
make: *** [all] Error 2
[root@localhost simon-0.4.1]#
 
Old 11-08-2015, 05:01 PM   #63
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #61.

As wrong as possible : yum cannot unpack an SRPM ( sphinxbase-0.8-9.fc22.src.rpm ).
And there are no rpm packages in Downloads/ to install with yum ?
See #60 : Unpack sphinxbase+pocketsphinx-el7.tar
# cd sphinxbase+pocketsphinx-el7/ && yum install *sphinx*.rpm


Re #62. Looks like you are (still) using an alien version of pocketsphinx :
/usr/local/include/pocketsphinx/pocketsphinx.h
Better uninstall that version, and install the rpm`s from "sphinxbase+pocketsphinx-el7/".



-

Last edited by knudfl; 11-08-2015 at 05:04 PM.
 
1 members found this post helpful.
Old 11-08-2015, 05:20 PM   #64
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I downloaded sphinxbase+pocketsphinx el7.

Code:
---> Package pocketsphinx-devel.x86_64 0:0.8-9.el7.centos will be installed
---> Package pocketsphinx-libs.x86_64 0:0.8-9.el7.centos will be installed
---> Package pocketsphinx-plugin.x86_64 0:0.8-9.el7.centos will be installed
---> Package pocketsphinx-python.x86_64 0:0.8-9.el7.centos will be installed
---> Package sphinxbase.x86_64 0:0.8-9.el7.centos will be installed
---> Package sphinxbase-devel.x86_64 0:0.8-9.el7.centos will be installed
--> Processing Dependency: pkgconfig(libpulse) for package: sphinxbase-devel-0.8-9.el7.centos.x86_64
---> Package sphinxbase-libs.x86_64 0:0.8-9.el7.centos will be installed
---> Package sphinxbase-python.x86_64 0:0.8-9.el7.centos will be installed
--> Running transaction check
---> Package atlas.x86_64 0:3.10.1-7.el7 will be installed
---> Package pocketsphinx.x86_64 0:0.8-9.el7.centos will be installed
--> Processing Dependency: pocketsphinx-models for package: pocketsphinx-0.8-9.el7.centos.x86_64
---> Package pulseaudio-libs-devel.x86_64 0:3.0-30.el7 will be installed
--> Finished Dependency Resolution
Error: Package: pocketsphinx-0.8-9.el7.centos.x86_64 (/pocketsphinx-0.8-9.el7.centos.x86_64)
           Requires: pocketsphinx-models
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Tried to remove the old pocketsphinx-
Code:
No Packages marked for removal
 
Old 11-08-2015, 05:52 PM   #65
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm not sure if I need this folder-
I'm thinking about it.
I Googled CMU Sphinx Open SRC Models:-

http://sourceforge.net/projects/cmus...ustic%20Model/
 
Old 11-08-2015, 06:27 PM   #66
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #65.

Well, the packages created from the bug fixed Fedora 22 SRPMS are working, that we know.
And there seems to be issues with the manually created *sphinx* you have in /usr/local/.



-
 
1 members found this post helpful.
Old 11-08-2015, 06:40 PM   #67
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm not sure what the issue or issues are in /usr/local.
Here's a screenshot of /usr/local/bin-

http://i1052.photobucket.com/albums/...8%20193243.png

The other directories in /usr/local are sbin, which is empty.
Than there is etc, games, include, lib, lib64, libexec, share, and src.
I'll look through those directories and see if anything seems not right.
 
Old 11-08-2015, 06:43 PM   #68
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #64.

Sorry, I forgot the 17.2MB `pocketsphinx-models' from the noarch folder.
Is here https://drive.google.com/file/d/0B7S...ew?usp=sharing


Quote:
Tried to remove the old pocketsphinx-
Manually installed programs : # cd pocketsphinx-*/ && make uninstall


-
 
Old 11-08-2015, 07:07 PM   #69
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by knudfl View Post
Re #64.

Sorry, I forgot the 17.2MB `pocketsphinx-models' from the noarch folder.
Is here https://drive.google.com/file/d/0B7S...ew?usp=sharing



Manually installed programs : # cd pocketsphinx-*/ && make uninstall


-
I downloaded and installed the pocketsphinx-models.-
Also removed the old program:

Code:
make[2]: Leaving directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha/swig/python'
make[2]: Entering directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha/swig'
make[2]: Nothing to be done for `uninstall-am'.
make[2]: Leaving directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha/swig'
make[1]: Leaving directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha/swig'
make[1]: Entering directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha'
 ( cd '/usr/local/lib/pkgconfig' && rm -f pocketsphinx.pc )
make[1]: Leaving directory `/home/linuxcat/Downloads/pocketsphinx-5prealpha'
Now I'll go back to post #63 and install the sphinxbase+pocketsphinxel7-
 
Old 11-08-2015, 07:12 PM   #70
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Sorry, I'm having trouble concentrating on what to do next-
 
Old 11-08-2015, 07:27 PM   #71
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Took a break. The pkg's sphinxbase+pocketsphinx-el7 are now installed-

Code:
Transaction Summary
================================================================================
Install  9 Packages (+2 Dependent packages)

Total size: 26 M
Total download size: 4.9 M
Installed size: 46 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): pulseaudio-libs-devel-3.0-30.el7.x86_64.rpm         | 405 kB   00:02     
(2/2): atlas-3.10.1-7.el7.x86_64.rpm                       | 4.5 MB   00:09     
--------------------------------------------------------------------------------
Total                                              513 kB/s | 4.9 MB  00:09     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : atlas-3.10.1-7.el7.x86_64                                   1/11 
  Installing : sphinxbase-libs-0.8-9.el7.centos.x86_64                     2/11 
  Installing : pocketsphinx-libs-0.8-9.el7.centos.x86_64                   3/11 
  Installing : sphinxbase-python-0.8-9.el7.centos.x86_64                   4/11 
  Installing : pulseaudio-libs-devel-3.0-30.el7.x86_64                     5/11 
  Installing : sphinxbase-devel-0.8-9.el7.centos.x86_64                    6/11 
  Installing : pocketsphinx-devel-0.8-9.el7.centos.x86_64                  7/11 
  Installing : pocketsphinx-python-0.8-9.el7.centos.x86_64                 8/11 
  Installing : pocketsphinx-0.8-9.el7.centos.x86_64                        9/11 
  Installing : pocketsphinx-plugin-0.8-9.el7.centos.x86_64                10/11 
  Installing : sphinxbase-0.8-9.el7.centos.x86_64                         11/11 
  Verifying  : pocketsphinx-python-0.8-9.el7.centos.x86_64                 1/11 
  Verifying  : pocketsphinx-0.8-9.el7.centos.x86_64                        2/11 
  Verifying  : pulseaudio-libs-devel-3.0-30.el7.x86_64                     3/11 
  Verifying  : sphinxbase-libs-0.8-9.el7.centos.x86_64                     4/11 
  Verifying  : sphinxbase-0.8-9.el7.centos.x86_64                          5/11 
  Verifying  : pocketsphinx-libs-0.8-9.el7.centos.x86_64                   6/11 
  Verifying  : atlas-3.10.1-7.el7.x86_64                                   7/11 
  Verifying  : sphinxbase-devel-0.8-9.el7.centos.x86_64                    8/11 
  Verifying  : pocketsphinx-plugin-0.8-9.el7.centos.x86_64                 9/11 
  Verifying  : sphinxbase-python-0.8-9.el7.centos.x86_64                  10/11 
  Verifying  : pocketsphinx-devel-0.8-9.el7.centos.x86_64                 11/11 

Installed:
  pocketsphinx.x86_64 0:0.8-9.el7.centos                                        
  pocketsphinx-devel.x86_64 0:0.8-9.el7.centos                                  
  pocketsphinx-libs.x86_64 0:0.8-9.el7.centos                                   
  pocketsphinx-plugin.x86_64 0:0.8-9.el7.centos                                 
  pocketsphinx-python.x86_64 0:0.8-9.el7.centos                                 
  sphinxbase.x86_64 0:0.8-9.el7.centos                                          
  sphinxbase-devel.x86_64 0:0.8-9.el7.centos                                    
  sphinxbase-libs.x86_64 0:0.8-9.el7.centos                                     
  sphinxbase-python.x86_64 0:0.8-9.el7.centos                                   

Dependency Installed:
  atlas.x86_64 0:3.10.1-7.el7     pulseaudio-libs-devel.x86_64 0:3.0-30.el7    

Complete!
[root@localhost sphinxbase+pocketsphinx-el7]#
I hope running the build.sh for Simon now works-
 
Old 11-08-2015, 07:45 PM   #72
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Simon is still barking-

Code:
/usr/include/pocketsphinx/pocketsphinx.h:59:33: fatal error: pocketsphinx_export.h: No such file or directory
 #include <pocketsphinx_export.h>
                                 ^
compilation terminated.
make[2]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o] Error 1
make[1]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/all] Error 2
make: *** [all] Error 2
[root@localhost simon-0.4.1]#
 
Old 11-08-2015, 10:57 PM   #73
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I Googled pocketsphinx_export.h and it's a file.
http://cmusphinx.sourceforge.net/doc...8h_source.html

This is the old pocketsphinx that I removed.
 
Old 11-14-2015, 06:57 PM   #74
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Creating this file in Vi solved that problem. I moved it to /usr/include:-

Code:
pocketsphinx_export.h
Still another compile error.
Code:
/usr/include/pocketsphinx/pocketsphinx.h:60:25: fatal error: cmdln_macro.h: No such file or directory
 #include <cmdln_macro.h>
                         ^
compilation terminated.
The truth is that cmdlin_macro.h that the build is barking about is a src file.
In which I think I need to re-install the /pocketsphinx-5prealpha.tar.gz I had to begin with as that's where all of the src files are for the build to be satisfied.

This is trial and error and I'll just have to keep trying-

***All I can say is Simon is a BEAST!***

I've had more compilation termination errors with Centos 7 than I did with Slackware.

Back to work-

Last edited by Ztcoracat; 11-14-2015 at 07:09 PM.
 
Old 11-21-2015, 04:40 PM   #75
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm still getting errors with the build.sh.
I've found a remedy but it's slow going.

For each error I have, I have to copy and paste the src file that's missing from the CMU website and than mv it to the /usr/include directory.

Once the src files that are missing are in the include directory I'm thinking the build script will run properly and Simon should install. So I thought-
Now I'm getting errors that I don't understand so I may not be able to install Simon on this Centos box.

Code:
/usr/include/pocketsphinx/pocketsphinx.h:666:1: error: expected declaration before ‘}’ token
 } /* extern "C" */
 ^
make[2]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o] Error 1
make[1]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/all] Error 2
make: *** [all] Error 2
 
  


Reply

Tags
htk, htk-3.4.1



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: C++ compiler cannot create executables dicou Linux - Newbie 19 06-22-2017 04:17 PM
configure: error: C compiler cannot create executables watashiwaotaku7 Linux - General 7 10-22-2009 09:40 AM
configure: error: C compiler cannot create executables Geneset Linux - Newbie 7 07-13-2007 03:11 PM
configure error - C compiler cannot create executables MrLobster Linux - Software 1 12-24-2005 12:13 AM
configure: error: C compiler cannot create executables strimp099 Linux - Software 2 07-11-2005 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration