OpenVZ Forum


Home » International » Russian » я думаю, что это ошибка в ostemplate centos 4 defulte
я думаю, что это ошибка в ostemplate centos 4 defulte [message #25511] Fri, 28 December 2007 05:58 Go to next message
realy is currently offline  realy
Messages: 21
Registered: November 2007
Junior Member
привет всем

я когда-нибудь установить с источником его автоматического исчезнуть или удалить например я установить "htop", и тип ее запуска htop хороший я делать после перезагрузки я делать htop он сказать, команда не найдена

Затем я установить его с работы, об / мин оно хорошее, поскольку перезагрузка и после нее

explane пожалуйста, почему это

Ядро: 2.6.9-023stab046.2 предприятий
ostemplate: centos-4-i386-умолчанию
vzctl: 3.0.22

благодаря
Re: я думаю, что это ошибка в ostemplate centos 4 defulte [message #25512 is a reply to message #25511] Fri, 28 December 2007 07:09 Go to previous messageGo to next 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
Re: я думаю, что это ошибка в ostemplate centos 4 defulte [message #25515 is a reply to message #25511] Fri, 28 December 2007 07:55 Go to previous messageGo to next message
realy is currently offline  realy
Messages: 21
Registered: November 2007
Junior Member
lol thx maratrus for ur reply

i do compile to htop from source and it work fine after reboot i'm not found it Very Happy git command not found when i do it from rpm i see it after reboot

i hope you understand me :$

thx again
Re: я думаю, что это ошибка в ostemplate centos 4 defulte [message #25520 is a reply to message #25515] Fri, 28 December 2007 09:41 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

I know that it is linguistic problem but it is so difficult for me to read messages without any punctuation mark. So I don't sure again that I understand your clearly but:

if you use bash: to set PATH variable automatically you can add appropriate directories to PATH variable in .bash_profile file which is in your home directory. Please look at this page
http://www.troubleshooters.com/linux/prepostpath.htm

P.S. If you add any message in third language I have to support it and have to put my messages translated in three languages. But keep in mind that in that case I too will have to translate my messages by automatically translator. Razz
Thank You!

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

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

Я понимаю, что это лингвистическая проблема, но мне очень тяжело читать сообщения, в которых нет ни одного знака препинания, поэтому я опять не уверен, что понял вас правильно, но:

если вы используете командный интерпретатор bash, то чтобы добавление директорий к PATH происходило автоматически, вы можете добавить соответсвтующие директории к переменной PATH в файле .bash_profile, который расположен в вашем домашнем каталоге, пожалуйста, взгляните на страничку
http://www.troubleshooters.com/linux/prepostpath.htm

P.S. Если вы задействуете еще один язык, то мне придется его также поддерживать, но учтите, что в таком случае я с необходимостью задействую компьютерный переводчик Razz
Спасибо!

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


Current Time: Thu May 09 22:51:11 GMT 2024

Total time taken to generate the page: 0.01424 seconds