OpenVZ Forum


Home » International » Russian » я думаю, что это ошибка в ostemplate centos 4 defulte
Re: я думаю, что это ошибка в ostemplate centos 4 defulte [message #25512 is a reply to message #25511] Fri, 28 December 2007 07:09 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Now I clearly understand how I communicate in English Laughing
In truth, I am very vaguely understood what is your problem.
Let's I describe the problem as far I understand it and you correct if it will be mistakes here.

1. You have got the sources of htop.
2. Then you compile it like a common soft.
3. When you type "$htop" you receive the message that the command not found.
4. Then you install htop from rpm and everything is OK?

If so then:
a) Linux searches executable files path with the PATH environment variable.
b) You can see it value by "echo $PATH" command.
c) So if your executable file is not in the directories which are in the PATH variable you must use the full path of your executable.
d) Or you can add directory to your PATH variable
PATH=$PATH:YOUR_DIR
export PATH

YOUR_DIR - is the path of your directory.

Thank You!

//---------------------------------------------------------- -----------//

Здавствуйте,

Теперь я понимаю, каким образом выглядит мое общение на английском Laughing
По правде говоря, я очень смутно понял суть вашей проблемы.
Давайте я попробую сам описать ее, а вы поправите меня, если что-то будет не верно
1. У вас есть исходники htop.
2. Вы скомпилировали эту программу как обычный софт.
3. Когда Вы набираете htop вы получаете сообщение, что такая команда не найдена
4. Затем Вы установили эту программу из rpm и все стало работать

Если я правильно описал проблему, то
а) Linux ищет исполняемые файлы в тех директориях, которые прописаны в переменной окружения PATH (если только вы не указали полный путь до этого исполняемого файла)
б)Вы можете посмотреть ее значение PATH, набрав "echo $PATH"
в) Таким образом, если место, где вы компилировали программу не прописано в PATH, то получите подобное сообщение.
г)Или вы можете добавить директорию к переменной PATH подобным образом
PATH=$PATH:YOUR_DIR
export PATH

YOUR_DIR - путь к вашей директории.

Благодарю Вас!


Laughing Laughing Laughing
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Проброс LVM девайса в VE
Next Topic: VPS не стартует после обновления
Goto Forum:
  


Current Time: Wed Jul 30 08:59:09 GMT 2025

Total time taken to generate the page: 0.05795 seconds