Results 1 to 7 of 7

Thread: Installing a program via the terminal problem

  1. #1
    Join Date
    Jan 2007
    Beans
    171

    Installing a program via the terminal problem

    Hi,

    I am trying to install a voice recognition program called CMU Sphinx on my Ubuntu 10.04.1 LTS Server Ed system.

    I have been using this tutorial:
    http://www.speech.cs.cmu.edu/sphinx/...l#traintarball

    The installation tutorial says to use the following command:

    configure --prefix=`pwd`/build --with-sphinxbase=`pwd`/../sphinxbase
    But when I run the command, I get the following output:

    :./configure: WARNING: Unrecognised options: --with- configure: error: expected an absolute directory name for --prefix: pwd/build
    I am thinking this maybe my lack of knowledge using terminal commands, and so was wondering if anyone could tel me where I'm going wrong.

    Many thanks for any help with this, it's most appreciated

  2. #2
    Join Date
    May 2009
    Location
    South America
    Beans
    22
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing a program via the terminal problem

    I'm fairly new to the command line as well, but here it goes..

    configure --prefix=`pwd`/build --with-sphinxbase=`pwd`/../sphinxbase
    the last part is short hand for move up one level and then down to a location /sphinxbase.

    Is it there and have you tried replacing the

    `pwd`/../sphinxbase
    with the absolute path to sphinxbase?

    for example:
    /parent_directory/sphinxbase
    Last edited by korleon; February 8th, 2011 at 03:06 AM. Reason: oops
    TEFL certified English Teacher
    Registered GNU/Linux User #491032
    Registered Ubuntu User #27631

  3. #3
    Join Date
    Aug 2005
    Location
    Los Angeles area
    Beans
    602
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Installing a program via the terminal problem

    Quote Originally Posted by Swerve1000 View Post
    But when I run the command, I get the following output:
    :./configure: WARNING: Unrecognised options: --with- configure: error: expected an absolute directory name for --prefix: pwd/build
    Try running it by replacing `pwd`/build and `pwd`/../sphinxbase with the actual absolute path names. For example:
    Code:
    configure --prefix=/DIRECTORY/build --with-sphinxbase=/DIRECTORY/SUBDIRECTORY/sphinxbase

  4. #4
    Join Date
    May 2009
    Location
    South America
    Beans
    22
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing a program via the terminal problem

    Thanks Old *ix Geek. I defer you your expertise.
    TEFL certified English Teacher
    Registered GNU/Linux User #491032
    Registered Ubuntu User #27631

  5. #5
    Join Date
    Jan 2007
    Beans
    171

    Re: Installing a program via the terminal problem

    Thanks chaps!

    I don't seem to have this 'build' directory.

    Google seems to suggest installing the headers for my kernel?

    Does that sound right?

  6. #6
    Join Date
    May 2009
    Location
    South America
    Beans
    22
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing a program via the terminal problem

    Yes you can use uname -a and then search synaptic for the appropriate kernel headers.
    TEFL certified English Teacher
    Registered GNU/Linux User #491032
    Registered Ubuntu User #27631

  7. #7
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: Installing a program via the terminal problem

    Or just run this to install them:

    Code:
    sudo apt-get install linux-headers-$(uname -r)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •