Создать ответ 
 
Рейтинг темы:
  • Голосов: 1 - Средняя оценка: 5
  • 1
  • 2
  • 3
  • 4
  • 5
Вапрос
Автор Сообщение
Rio Не на форуме
Продвинутый
***

Сообщений: 365
Зарегистрирован: 04.04.2009
Рейтинг: 2
Сказал спасибо: 1
Поблагодарили 4 раз(а) в 4 сообщ.
Сообщение: #15
RE: Вапрос
PHP код:
# base-files version 4.0-6
# /etc/profile: executed by the command interpreter for login shells.

# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/profile

# Modifying /etc/profile directly will prevent
# setup from updating it.

# System-wide profile file

# Some resources...
# Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69
# Consistent BackSpace and Delete Configuration:
#   http://www.ibb.net/~anne/keyboard.html
# The Linux Documentation Project: http://www.tldp.org/
# The Linux Cookbook: http://www.tldp.org/LDP/linuxcookbook/html/

# Setup some default paths. Note that this order will allow user installed
# software to override 'system' software.
# Modifying these default path settings can be done in different ways.
# To learn more about startup files, refer to your shell's man page.
PATH="/usr/local/bin:/usr/bin:${PATH}"
MANPATH="/usr/local/man:/usr/share/man:/usr/man:${MANPATH}"
INFOPATH="/usr/local/info:/usr/share/info:/usr/info:${INFOPATH}"

# Set the user id
USER="$(id -un)"

# TMP and TEMP are defined in the Windows environment. Leaving
# them set to the default Windows temporary directory or unset
# can have unexpected consequences. 
unset TMP TEMP
TMP
="/tmp"
TEMP="/tmp"

# Define default printer
p='/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows NT/CurrentVersion/Windows/Device'
if [ -"${p}] ; then
  read 
-r PRINTER "${p}
  
PRINTER=${PRINTER%%,*}
fi
unset p

# Default to removing the write permission for group and other
#  (files normally created with mode 777 become 755; files created with
#  mode 666 become 644)
umask 022

# Here is how HOME is set, in order of priority, when starting from Windows
#  1) From existing HOME in the Windows environment, translated to a Posix path
#  2) from /etc/passwd, if there is an entry with a non empty directory field
#  3) from HOMEDRIVE/HOMEPATH
#  4) / (root)
# If the home directory doesn't exist, create it.
if [ ! -"${HOME}]; then
  
if mkdir -"${HOME}"then
    
echo "Copying skeleton files."
    
echo "These files are for the users to personalise their cygwin experience."
    
echo
    echo 
"They will never be overwritten nor automatically updated."
    
echo
    
cd /etc/skel || echo "WARNING: Failed attempt to cd into /etc/skel!"
    
/usr/bin/find . -type f | while read f; do
      
fDest=${f#.}
      
if [ ! -"${HOME}${fDest}-! -"${HOME}${fDest}]; then
        
/usr/bin/install ---"${f}" "${HOME}/${fDest}"
      
fi
    done
    
unset fDest
  
else
    echo 
"${HOME} could not be created."
    
{ [ -"${TEMP}] && HOME="${TEMP}"; } ||
    { [ -
"${TMP}] && HOME="${TMP}"; } ||
    { [ -
/tmp ] && HOME=/tmp; } ||
    
HOME=/
    echo 
"Setting HOME to ${HOME}."
  
fi
fi

# Make sure we start in home unless invoked by CHERE
if [ ! -"${CHERE_INVOKING}]; then
  
unset CHERE_INVOKING
else
  
cd "${HOME}|| echo "WARNING: Failed attempt to cd into ${HOME}!"
fi

# Shell dependent settings
profile_d ()
{
  
saved_LC_COLLATE=${LC_COLLATE}
  
LC_COLLATE=C
  
for file in /etc/profile.d/*.$1; do
    [ -e "${file}" ] && . "${file}"
  done
  LC_COLLATE=${saved_LC_COLLATE}
  unset saved_LC_COLLATE
}

if [ ! "x${BASH_VERSION}" = "x"  ]; then
  HOSTNAME=$(/usr/bin/hostname)
  profile_d sh
  [ -f "/etc/bash.bashrc" ] && . "/etc/bash.bashrc"
elif [ ! "x${KSH_VERSION}" = "x" ]; then
  typeset -l HOSTNAME=$(/usr/bin/hostname)
  profile_d sh
  PS1=$(print '\033]0;${PWD}\n\033[32m${USER}@${HOSTNAME} \033[33m${PWD/${HOME}/~}\033[0m\n$ ')
elif [ ! "x${ZSH_VERSION}" = "x" ]; then
  HOSTNAME=$(/usr/bin/hostname)
  profile_d zsh
  PS1='(%n@%m)[%h] %~ %% '
elif [ ! "x${POSH_VERSION}" = "x" ]; then
  HOSTNAME=$(/usr/bin/hostname)
  PS1="$ "
else 
  HOSTNAME=$(/usr/bin/hostname) 
  profile_d sh
  PS1="$ "
fi

export PATH MANPATH INFOPATH USER TMP TEMP PRINTER HOSTNAME PS1 

# Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails
#   about this on the lists!
#
# The following are the conditions under which the group name special cases 
#   will appear (where uid and gid are the effective user and group ids
#   for the current user, and pgsid is the primary group associated with the
#   SID for the current user):
#       mkpasswd:
#         gid is not in /etc/group
#         uid is not in /etc/passwd
#       passwd/group_GID_clash(<gid>/<pgsid>):
#         gid is not in /etc/group
#         uid is in /etc/passwd
#         pgsid is in /etc/group (and does not match gid)
#       mkgroup:
#         gid is not in /etc/group
#         uid is in /etc/passwd
#         pgsid is not in /etc/group
#
# If this message keeps appearing and you are sure it's a mistake (ie, don't
#   email about it!), comment out the test below.
case "$(id -ng)" in
mkpasswd )
  echo "Your group is currently \"mkpasswd\".  This indicates that your"
  echo "gid is not in /etc/group and your uid is not in /etc/passwd."
  echo
  echo "The /etc/passwd (and possibly /etc/group) files should be rebuilt."
  echo "See the man pages for mkpasswd and mkgroup then, for example, run"
  echo
  echo "mkpasswd -l [-d] > /etc/passwd"
  echo "mkgroup  -l [-d] > /etc/group"
  echo
  echo "Note that the -d switch is necessary for domain users."
  ;;
passwd/group_GID_clash* )
  echo "Your group is currently \"passwd/group_GID_clash(gid/pgsid)\".  This"
  echo "indicates that your gid is not in /etc/group, but the pgsid (primary "
  echo "group associated with your SID) is in /etc/group."
  echo
  echo "The /etc/passwd (and possibly /etc/group) files should be rebuilt."
  echo "See the man pages for mkpasswd and mkgroup then, for example, run"
  echo
  echo "mkpasswd -l [-d] > /etc/passwd"
  echo "mkgroup  -l [-d] > /etc/group"
  echo
  echo "Note that the -d switch is necessary for domain users."
  ;;
mkgroup )
  echo "Your group is currently \"mkgroup\".  This indicates that neither"
  echo "your gid nor your pgsid (primary group associated with your SID)"
  echo "is in /etc/group."
  echo
  echo "The /etc/group (and possibly /etc/passwd) files should be rebuilt."
  echo "See the man pages for mkpasswd and mkgroup then, for example, run"
  echo
  echo "mkpasswd -l [-d] > /etc/passwd"
  echo "mkgroup  -l [-d] > /etc/group"
  echo
  echo "Note that the -d switch is necessary for domain users."
  ;;
esac


cd /usr/local/dc/kos/kos
source environ.sh 
вот полный текст моего файла. судя по всему заданная строка в нем уже есть.
при попытке вызвать из консоли команду make пишет ругательное "command not found".
01.04.2011 17:09
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
Вапрос - Rio - 27.03.2011, 20:01
RE: Вапрос - Rio - 27.03.2011, 20:28
RE: Вапрос - sc_maxim - 28.03.2011, 00:38
RE: Вапрос - Rio - 29.03.2011, 16:20
RE: Вапрос - SWAT - 29.03.2011, 18:38
RE: Вапрос - sc_maxim - 29.03.2011, 21:53
RE: Вапрос - SWAT - 30.03.2011, 06:11
RE: Вапрос - Rio - 30.03.2011, 16:01
RE: Вапрос - SWAT - 30.03.2011, 18:28
RE: Вапрос - Rio - 30.03.2011, 18:50
RE: Вапрос - sc_maxim - 30.03.2011, 19:09
RE: Вапрос - Rio - 31.03.2011, 01:43
RE: Вапрос - sc_maxim - 31.03.2011, 01:59
RE: Вапрос - SWAT - 31.03.2011, 08:06
RE: Вапрос - Rio - 01.04.2011 17:09
RE: Вапрос - sc_maxim - 01.04.2011, 20:01
RE: Вапрос - Rio - 02.04.2011, 12:53
RE: Вапрос - SWAT - 02.04.2011, 13:03
RE: Вапрос - Rio - 02.04.2011, 13:04
RE: Вапрос - SWAT - 02.04.2011, 13:15
RE: Вапрос - Rio - 02.04.2011, 14:53
RE: Вапрос - SWAT - 02.04.2011, 15:26
RE: Вапрос - Rio - 02.04.2011, 17:34
RE: Вапрос - SWAT - 02.04.2011, 18:42
RE: Вапрос - Rio - 02.04.2011, 20:19
RE: Вапрос - Rio - 02.04.2011, 20:48
RE: Вапрос - SWAT - 03.04.2011, 10:56
RE: Вапрос - Rio - 04.04.2011, 20:30
RE: Вапрос - sc_maxim - 04.04.2011, 22:42
RE: Вапрос - Rio - 04.04.2011, 23:26
RE: Вапрос - SWAT - 05.04.2011, 06:10
RE: Вапрос - sc_maxim - 05.04.2011, 02:10
RE: Вапрос - Rio - 10.04.2011, 18:29
RE: Вапрос - SWAT - 11.04.2011, 05:58
RE: Вапрос - Rio - 12.04.2011, 20:53
RE: Вапрос - SWAT - 13.04.2011, 06:19
RE: Вапрос - Rio - 13.04.2011, 20:29
RE: Вапрос - SWAT - 14.04.2011, 10:38
RE: Вапрос - Rio - 13.05.2011, 16:04
RE: Вапрос - SWAT - 13.05.2011, 17:26
RE: Вапрос - Rio - 28.05.2011, 13:34
RE: Вапрос - SWAT - 29.05.2011, 07:14
RE: Вапрос - Rio - 30.05.2011, 17:33
RE: Вапрос - SWAT - 31.05.2011, 13:57
RE: Вапрос - Rio - 01.06.2011, 13:12
RE: Вапрос - SWAT - 01.06.2011, 19:17
RE: Вапрос - Rio - 07.06.2011, 20:03
RE: Вапрос - SWAT - 08.06.2011, 07:51
RE: Вапрос - Rio - 12.06.2011, 23:50
RE: Вапрос - SWAT - 14.06.2011, 07:19
RE: Вапрос - Rio - 24.07.2011, 20:58
RE: Вапрос - SWAT - 25.07.2011, 06:32
RE: Вапрос - Rio - 25.07.2011, 15:38
RE: Вапрос - SWAT - 26.07.2011, 11:28
RE: Вапрос - Rio - 26.07.2011, 22:50
RE: Вапрос - SWAT - 27.07.2011, 07:19
RE: Вапрос - Rio - 27.07.2011, 21:10
RE: Вапрос - SWAT - 28.07.2011, 05:51
RE: Вапрос - Rio - 31.10.2011, 00:20
RE: Вапрос - SWAT - 01.11.2011, 07:38
RE: Вапрос - Rio - 03.11.2011, 16:42
RE: Вапрос - SWAT - 04.11.2011, 09:35
RE: Вапрос - Rio - 05.11.2011, 16:35
RE: Вапрос - SWAT - 05.11.2011, 19:04
RE: Вапрос - Rio - 05.11.2011, 19:52
RE: Вапрос - SWAT - 06.11.2011, 11:27
RE: Вапрос - Rio - 06.11.2011, 14:57
RE: Вапрос - SWAT - 06.11.2011, 19:36
RE: Вапрос - Rio - 07.11.2011, 15:17
RE: Вапрос - SWAT - 08.11.2011, 10:09
RE: Вапрос - Rio - 12.11.2011, 18:01
RE: Вапрос - SWAT - 13.11.2011, 11:13
RE: Вапрос - Rio - 15.11.2011, 00:28
RE: Вапрос - SWAT - 15.11.2011, 14:15
RE: Вапрос - Rio - 16.11.2011, 18:52
RE: Вапрос - SWAT - 17.11.2011, 06:42
RE: Вапрос - Rio - 17.11.2011, 20:34
RE: Вапрос - SWAT - 18.11.2011, 08:04
RE: Вапрос - Rio - 18.11.2011, 23:53
RE: Вапрос - Rio - 19.11.2011, 22:03
RE: Вапрос - SWAT - 20.11.2011, 10:22
RE: Вапрос - Rio - 20.11.2011, 15:07
RE: Вапрос - SWAT - 20.11.2011, 18:08
RE: Вапрос - Rio - 20.11.2011, 19:19
RE: Вапрос - SWAT - 20.11.2011, 19:26
RE: Вапрос - SWAT - 21.11.2011, 17:30
RE: Вапрос - Rio - 25.11.2011, 23:39
RE: Вапрос - sc_maxim - 26.11.2011, 02:35
RE: Вапрос - SWAT - 26.11.2011, 09:50
RE: Вапрос - Rio - 26.11.2011, 20:34
RE: Вапрос - SWAT - 28.11.2011, 07:45
RE: Вапрос - Rio - 29.11.2011, 21:46
RE: Вапрос - SWAT - 30.11.2011, 08:52
RE: Вапрос - Rio - 19.01.2012, 01:33
RE: Вапрос - cybdyn - 19.01.2012, 03:47
RE: Вапрос - Rio - 19.01.2012, 14:16
RE: Вапрос - SWAT - 19.01.2012, 17:28
RE: Вапрос - Rio - 19.01.2012, 19:32
RE: Вапрос - SWAT - 19.01.2012, 21:01
RE: Вапрос - Rio - 23.01.2012, 18:44
RE: Вапрос - SWAT - 23.01.2012, 18:52
RE: Вапрос - cybdyn - 23.01.2012, 19:29
RE: Вапрос - Retro - 23.01.2012, 19:43
RE: Вапрос - SWAT - 23.01.2012, 20:00
RE: Вапрос - cybdyn - 23.01.2012, 22:00
RE: Вапрос - Rio - 23.01.2012, 23:57
RE: Вапрос - Василий - 18.08.2012, 01:47
RE: Вапрос - SWAT - 19.08.2012, 18:01
RE: Вапрос - Василий - 20.08.2012, 03:14
RE: Вапрос - SWAT - 20.08.2012, 16:22

Переход:


Пользователи просматривают эту тему: 2 Гость(ей)