Ubuntu 13.04 build issue

Hi. I'm both new to ubuntu and mining. I hope someone here will know the answer to this.
I'm following the guide: http://ethereum-miner.tumblr.com/post/75205573886/linux-ubuntu-install-guide
I update the repositories and grab the dependencies,
and when i type in:
git cmake libboost-all-dev automake libtool libleveldb-dev yasm unzip libminiupnpc-dev

I get an error saying:

git: 'cmake' is not a git command. See 'git --help'.

Thanks

Comments

  • mids106mids106 Member Posts: 188 ✭✭✭
    edited February 2014
    sudo apt-get install build-essential libgmp-dev libgmp3-dev libcrypto++-dev \
    git cmake libboost-all-dev automake libtool libleveldb-dev yasm unzip libminiupnpc-dev

    That is a single statement:

    sudo apt-get install build-essential libgmp-dev libgmp3-dev libcrypto++-dev git cmake libboost-all-dev automake libtool libleveldb-dev yasm unzip libminiupnpc-dev

    Thus run it as one.
  • timekilltimekill Member Posts: 5
    Dang I feel stupid... Thanks alot mids106
  • timekilltimekill Member Posts: 5
    Having some more issues though...

    I had a warning earlier: (is this a problem?)

    "
    ./configure && make
    yasm -f elf64 -o obj/field_5x52_asm.o src/field_5x52_asm.asm
    cc -std="gnu99" -DUSE_FIELD_5X52 -DUSE_FIELD_5X52_ASM -DUSE_NUM_GMP -DUSE_FIELD_INV_NUM -DVERIFY -fstack-protector-all -O2 -ggdb3 src/tests.c obj/field_5x52_asm.o -lgmp -o tests
    src/tests.c: In function ‘main’:
    src/tests.c:439:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    src/tests.c:439:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
    cc -fPIC -std="gnu99" -DUSE_FIELD_5X52 -DUSE_FIELD_5X52_ASM -DUSE_NUM_GMP -DUSE_FIELD_INV_NUM -DNDEBUG -O2 src/secp256k1.c -c -o obj/secp256k1.o
    ar -rs libsecp256k1.a obj/field_5x52_asm.o obj/secp256k1.o
    ar: creating libsecp256k1.a
    cc -std="gnu99" -lgmp obj/field_5x52_asm.o obj/secp256k1.o -shared -o libsecp256k1.so
    [email protected]:~/secp256k1$ cd ..
    [email protected]:~$ git clone https://github.com/ethereum/cpp-ethereum
    Cloning into 'cpp-ethereum'...
    remote: Reusing existing pack: 2681, done.
    remote: Counting objects: 31, done.
    remote: Compressing objects: 100% (27/27), done.
    remote: Total 2712 (delta 9), reused 9 (delta 4)
    Receiving objects: 100% (2712/2712), 807.30 KiB | 337 KiB/s, done.
    Resolving deltas: 100% (2050/2050), done.
    "
  • mids106mids106 Member Posts: 188 ✭✭✭
  • timekilltimekill Member Posts: 5
    edited February 2014
    I dont get this... I didnt even want to ask another question. But I cant find no answer.

    when I:
    "
    cmake /home/user/cpp-ethereum -DCMAKE_BUILD_TYPE=Release
    -- The C compiler identification is GNU 4.7.3
    -- The CXX compiler identification is GNU 4.7.3
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Found Crypto++: /usr/include/cryptopp, /usr/lib/libcryptopp.so
    -- System Crypto++ version found is smaller than 5.6.2.
    -- System Crypto++ not found, broken or too old. We use /home/user/cryptopp562/libcryptopp.a
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    Installation path: /usr/local
    CMake Error at alethzero/CMakeLists.txt:26 (find_package):
    By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
    has asked CMake to find a package configuration file provided by
    "Qt5Widgets", but CMake did not find one.

    Could not find a package configuration file provided by "Qt5Widgets" with
    any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

    Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
    "Qt5Widgets_DIR" to a directory containing one of the above files. If
    "Qt5Widgets" provides a separate development package or SDK, be sure it has
    been installed.


    -- Configuring incomplete, errors occurred!

    "


    Yes it says what I need to do.. It cant find the files it needs. So there are 2 different solutions, either to CMAKE_PREFIX_PATH or Qt5Widgets_DIR. But what the hell that does mean. I found an "answer" on a different page saying that you only need to do what it tells you to do.

    But what is that? I dont know if I'm supposed to copy the files to cpp-ethereum or what, if I'm supposed to use the commands CMAKE_PREFIX_PATH or Qt5Widgets_DIR, With ="" or ../ .
    I tried to search the computer i found the Qt5Widgets*.cmake I various folders so I tried writing:
    "
    cmake /home/user/cpp-ethereum -DCMAKE_BUILD_TYPE=Release CMAKE_PREFIX_PATH /opt/Qt5.2.1/5.2.1/gcc_64/lib/cmake/Qt5Widgets/
    CMake Error: The source directory "/opt/Qt5.2.1/5.2.1/gcc_64/lib/cmake/Qt5Widgets" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.
    "

    What command and what folder to specify, PLEASE bear with me. I'm trying to learn.....
    Thanks
  • mids106mids106 Member Posts: 188 ✭✭✭
    Looks like you are missing the QT dependencies. You should probably follow the build instructions from an authoritative source, not some 3rd party blog.

    http://code.ethereum.org/
  • timekilltimekill Member Posts: 5
    I was using this this page as guide: http://ethereum-miner.tumblr.com/post/75205573886/linux-ubuntu-install-guide

    I have installed "qt-opensource-linux-x64-5.2.1.run", isnt that the latest? What am I missing?

  • Wil611Wil611 Member Posts: 77 ✭✭
    @timekill I used the ethereum github instructions

    https://github.com/ethereum/cpp-ethereum/wiki/Building-on-Ubuntu

    those added the qt5 dependencys in the following statement...

    sudo apt-get install build-essential libgmp-dev libgmp3-dev libcrypto++-dev git cmake libboost1.53-all-dev automake libtool libleveldb-dev yasm unzip libminiupnpc-dev qtbase5-dev qt5-default

    hope that helps
Sign In or Register to comment.