Dear sir:

The reason that 'sudo comp' prints 'command not found' is that 'sudo'
sanitizes the PATH, removing the directory added by ".scripts/emc-environment". 
I think it is " comp --install sixpkm.c (not /emc2/src/emc/kinematics/sixpkm.c) 
", is it right?

But when I run the command, it likes this:

yang...@yangdan-desktop:~$ comp --install sixpkm.c
The program 'comp' can be found in the following packages:
* nmh
* mailutils-mh
Try: sudo apt-get install <selected package>
bash: comp: command not found

Then I installed these packages, but it doesn't work.

Thanks for your help!
Regards!
yang





在2009-06-08,"Jeff Epler" <[email protected]> 写道:
>If using run-in-place, do not use sudo with comp --install.
>
>"sudo comp --install" is required for run-installed systems, because
>your user does not have permission to modify system files, and installed
>systems put realtime components in a system directory.
>
>With a run-in-place system, the same user who built emc has permission
>to modify the directory where realtime components are placed, so sudo is
>not necessary.
>
>The reason that 'sudo comp' prints 'command not found' is that 'sudo'
>sanitizes the PATH, removing the directory added by ".
>scripts/emc-environment".  This is documented in the sudo manpage:
>       There are two distinct ways to deal with environment variables.
>       By default, the env_reset sudoers option is enabled.  This causes
>       commands to be executed with a minimal environment containing
>       TERM, PATH, HOME, SHELL, LOGNAME, USER and USERNAME in addition
>       to variables from the invoking process permitted by the env_check
>       and env_keep sudoers options.  There is effectively a whitelist
>       for environment variables.
>
>Jeff
>
>------------------------------------------------------------------------------
>OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
>looking to deploy the next generation of Solaris that includes the latest 
>innovations from Sun and the OpenSource community. Download a copy and 
>enjoy capabilities such as Networking, Storage and Virtualization. 
>Go to: http://p.sf.net/sfu/opensolaris-get
>_______________________________________________
>Emc-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/emc-users
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to