Could you please let me know, how can I install cdec on Ubuntu 14.04? Because the new type of cdec installation (CMake) doesn't work on my system! Does any one know that, is there any step by step tutorial for installing the new version of cdec platform on Ubuntu 14.04?

Thank you in advance.

  • How about a link to the download and steps you used – Mark Kirby Oct 7 '15 at 11:10
  • This is the link which I am following: cs.cmu.edu/~mdenkows/cdec-realtime.html – user297091 Oct 7 '15 at 11:11
  • Thats a long tutorial which part did you fail on ? – Mark Kirby Oct 7 '15 at 11:12
  • Download and build the cdec toolkit: cd ~/prefix/sw git clone github.com/redpony/cdec.git cd cdec autoreconf -ifv ./configure --prefix=$PREFIX make – user297091 Oct 7 '15 at 11:13
  • and Build the Python interface to cdec: cd ~/prefix/sw/cdec/python python setup.py build_ext --inplace – user297091 Oct 7 '15 at 11:14

Instructions for building the software using cmake are provided in the BUILDING file that is distributed with the source code i.e.

Instructions for building

 1) Create a build directory and generate Makefiles using CMake

        mkdir build
        cd build
        cmake ..

    If the cmake command completes successfully, you can proceed. If you have
    libraries (such as Boost) installed in nonstandard locations, you may need
    to run cmake with special options like -DBOOST_ROOT=/path/to/boost.

 2) Build

        make -j 2

 3) Test
        make test

    Everything should pass.

 4) Enjoy!

However, it seems that the perl script in step 3) actually assumes that the build was done 'in tree' rather than 'out of tree' i.e. by running cmake . followed by make in the parent cdec directory, instead of using a separate build subdirectory.

If you have followed the suggested steps 1) and 2) above, then probably the simplest way to run the tests is to copy the cdec/test directory into your build directory e.g. from inside build, execute

cp -r ../tests/ ./

You should then be able to run ./tests/run-system-tests.pl also from within the build directory.

Alternatively, you could start over and do an in-tree build instead.

  • bash: ./tests/run-system-tests.pl: No such file or directory – user297091 Oct 7 '15 at 12:14
  • @user297091 so it seems that the instructions for running the tests actually assume that you have done an in-tree build i.e. run cmake . and then make from the top-level cdec directory instead of running cmake .. from within a separate build subdirectory. You should bring this to the attention of the package's maintainers. – steeldriver Oct 7 '15 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.