Как установить CAL++ в Kali Linux?

Эта инструкция (Как установить CAL++ в Kali Linux) из серии о том, Как установить GLRX, AMD APP SDK, CAL++ и Pyrit в Kali Linux. Идея в том, чтобы установить корректные драйвера в Kali Linux для вашей видеокарты и использовать комбинацию из CPU+GPU с программой Pyrit для увеличения скорости обработки данных. Практическим примером использования этой комбинации является «Взлом Wi-Fi пароля (WPA/WPA2), используя pyrit и cowpatty в Kali Linux».

Читатели, пожалуйста следуйте инструкциям из этой серии в следующем порядке:

Проверка установки FGLRX

Начнём с проверки, установлен ли модуль fglrx:

lsmod | grep fglrx

Вы должны получить что-то вроде этого:

fglrx 8679112 140
button 12988 1 fglrx

1

Если модуль не установлен, то переходите к инструкции «Установка проприетарного драйвера AMD ATI fglrx».

Проверка установки AMD APP SDK

Проверяем, установлен ли AMD APP SDK. Если нет, то устанавливаем его по этой инструкции: «Как установить AMD APP SDK в Kali Linux?».

Инструкция по установке CAL++

CAL++ — это простая библиотека, позволяющая писать напрямую в ядра ATI CAL на C++. Синтакис очень схож с OpenCL. Также включены оболочки C++ для CAL.

Проект был зарегистрирован на SourceForge.net 19 февраля 2010 года.

Подготовка к установке:

apt-get install cmake libboost-all-dev

Загрузка CAL++

Загрузите calpp 0.90 с веб-сайта SourceForge CAL++

Установка CAL++

cd ~/Downloads
tar -xvf calpp-0.90.tar.gz
cd calpp-0.90/

Отредактируем файл CMakeLists.txt:

leafpad CMakeLists.txt

Найдём строки, которые начинаются с FIND_LIBRARY и FIND_PATH и заменим их на эти:

FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "$ENV{ATISTREAMSDKROOT}" )
FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "$ENV{ATISTREAMSDKROOT}" )
FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "$ENV{ATISTREAMSDKROOT}/include/CAL" )

Сохраняем и выходим.

Собираем и устанавливаем CAL++

Наберите следующие команды:

cmake .
make
make install

Подсказка: команду cmake нужно набирать с точкой — именно так, как приведено чуть выше.

7 комментариев

  1. Добрый день, у меня конечно не Kali, обычная 15,04. По этому AMD APP SDK пихнул к себе. вышло так

    cons@book:~$ env | grep -i amd
    AMDAPPSDKSAMPLESROOT=/home/cons/AMDAPPSDK-3.0/
    LD_LIBRARY_PATH=/home/cons/AMDAPPSDK-3.0/lib/x86_64:/home/cons/AMDAPPSDK-3.0/lib/x86/
    ATISTREAMSDKROOT=/home/cons/AMDAPPSDK-3.0/
    AMDAPPSDKROOT=/home/cons/AMDAPPSDK-3.0/
    вроде все остальное прописал, но не могу собрать CAL

    пишет

    cmake .
    — Boost version: 1.58.0
    — Found the following Boost libraries:
    —   date_time
    — ===========================================================
    ATI CAL include directory LIB_ATICAL_INCLUDE-NOTFOUND(я так понимаю проблема здесь?)
    — ATI CAL cl library directory /usr/lib
    — ATI CAL rt library directory /usr/lib
    — Boost version 1_58
    — ===========================================================
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    LIB_ATICAL_INCLUDE
       used as include directory in directory /home/cons/Downloads/calpp-0.90/examples

    Что посоветуйте?

  2. root@kali:~/Downloads/calpp-0.90# cmake .
    — Boost version: 1.49.0
    — Found the following Boost libraries:
    —   date_time
    — ===========================================================
    — ATI CAL include directory LIB_ATICAL_INCLUDE-NOTFOUND
    — ATI CAL cl library directory /usr/lib/x86_64-linux-gnu
    — ATI CAL rt library directory /usr/lib/x86_64-linux-gnu
    — Boost version 1_49
    — ===========================================================
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    LIB_ATICAL_INCLUDE
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/examples
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression
       used as include directory in directory /root/Downloads/calpp-0.90/regression

    — Configuring incomplete, errors occurred!
    See also "/root/Downloads/calpp-0.90/CMakeFiles/CMakeOutput.log".

    в чем может быть проблема?

  3. такая ж ошибка..

    — Boost version: 1.55.0
    — Found the following Boost libraries:
    —   date_time
    — ===========================================================
    — ATI CAL include directory LIB_ATICAL_INCLUDE-NOTFOUND
    — ATI CAL cl library directory /usr/lib
    — ATI CAL rt library directory /usr/lib
    — Boost version 1_55
    — ===========================================================
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    LIB_ATICAL_INCLUDE
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/examples
       used as include directory in directory /root/Завантажене/calpp-0.90/regression
       used as include directory in directory /root/Завантажене/calpp-0.90/regression

    — Configuring incomplete, errors occurred!
    See also "/root/Завантажене/calpp-0.90/CMakeFiles/CMakeOutput.log".

    что нужно делать чтоб исправить ошибку. помогите)

  4. У меня Mint 17.2. Ситуация вот такая:(до этого все отлично было, разве что при установке AMD APP SDK файл /root/.bashrc был пустым. Строки я добавил по инструкции, проверка показала то, что и ожидалось)
    I9300 calpp-0.90 # cmake .
    — The CXX compiler identification is unknown
    CMake Error: your CXX compiler: «CMAKE_CXX_COMPILER-NOTFOUND» was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
    — Boost version: 1.54.0
    — Found the following Boost libraries:
    — date_time
    — ===========================================================
    — ATI CAL include directory /opt/AMDAPPSDK-3.0/include/CAL
    — ATI CAL cl library directory /usr/lib
    — ATI CAL rt library directory /usr/lib
    — Boost version 1_54
    — ===========================================================
    — Configuring incomplete, errors occurred!
    See also «/root/Загрузки/calpp-0.90/CMakeFiles/CMakeOutput.log».
    See also «/root/Загрузки/calpp-0.90/CMakeFiles/CMakeError.log».

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *