Скачали какой-нибудь пакетик и хотите его скомпилировать?
А у вас вылазит:
make: command not found
Решение простое, вам необходимо установить пакет make
aptitude install make
Еще из этой серии вам может понадобиться компилятор gcc и вы увидите такую ошибку:
gcc: Command not found
Это тоже решается просто — устанавливаем gcc и необходимые зависимости
Я пытаюсь следовать руководству, чтобы получить CudaMiner , работающий в Linux. У меня PAINSTAKINGLY установлены драйверы NVidia, Cuda 5.0 и, кстати, я провалился на последнем шаге, когда я запускаю make :
Я уверен, что у меня есть gcc, на самом деле у меня есть несколько версий. Я установил версию 4.6 (это то, что требуется cuda), но она, похоже, не находит ее. Я так близко!
3 ответа
Сделайте это: откройте терминал и введите gcc —version . Что-нибудь придумало?
В качестве альтернативы выполните поиск исполняемого файла gcc, который должен быть расположен в / usr / bin. Do ls /usr/bin | grep gcc . Какой результат вы получаете от этой команды?
Если вы не получаете выход из любой команды, вам нужно найти исполняемый файл gcc, где бы вы его не установили (где-то в / usr / share, возможно?). Когда найдено, do cd /usr/bin && ln -s [ABSOLUTE PATH OF GCC] .
Если у вас нет выхода из первого, но выводятся из второго, тогда у вас есть серьезные проблемы, потому что / usr / bin не находится в вашем PATH. Отредактируйте файл /etc/environment и добавьте следующую строку в конец документа: PATH=»$PATH:/usr/bin» .
Если вы получили выход из первого, тогда возникает проблема где-то с bash, не читая его собственный PATH. Я думаю, что ад замерзнет перед первыми работами, но наблюдайте, как вы доказываете мне, что я ошибаюсь, и замораживаю ад для меня. 🙂
Надеюсь, это поможет! +1 меня, если это произойдет!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Источник: