Hi,when I installed the cygwin,amd run the command cygserver-config ,happened error
the error message
"
Administrator@2k3 ~
$ cygserver-config
Overwrite existing /etc/cygserver.conf file? (yes/no) yes
Generating /etc/cygserver.conf file
Warning: The following function requires administrator privileges!
Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
/usr/bin/cygserver-config: line 176: cygrunsrv: command not found
Installation of cygserver as service failed. Please check the
error messages you got. They might give a clue why it failed.
A good start is either you don't have administrator privileges
or a missing cygrunsrv binary. Please check for both.
"
How to solve the error
thanks
Can you try reinstalling cygwin? Maybe selecting a different mirror? I just tried on a fresh VM and was able to download and find the cygrunsrv.exe package.
Try right clicking the cygwin shell link and selecting "run as Administrator". Then retry installing the service.
my system is win2K3 ,and no "run as Administrator".
Then I installed the cygwin on win2K8 system,run cygwin shell select"run as administrator",the error message is following
.
"
Administrator@WIN-88HE91K2R5D ~
$ cygserver-config
Overwrite existing /etc/cygserver.conf file? (yes/no) yes
Generating /etc/cygserver.conf file
Warning: The following function requires administrator privileges!
Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
/usr/bin/cygserver-config: line 176: cygrunsrv: command not found
Installation of cygserver as service failed. Please check the
error messages you got. They might give a clue why it failed.
A good start is either you don't have administrator privileges
or a missing cygrunsrv binary. Please check for both.
"
and then I didn't find the bin folder under usr folder
When you installed cygwin did you make sure to install everything? IE did you make sure to follow the following instructions from the benchmarking guide?
8 At the top of the list, next to the word All, click once on the word Default.
The status of all the packages will change from Default to Install
Do you see a "cygrunsrv.exe" on your system under c:\cygwin\bin?
I do not see "cygrunsrv.exe" on system under c:\cygwin\bin.
And I install cygwin of all the packages.
Can you try reinstalling cygwin? Maybe selecting a different mirror? I just tried on a fresh VM and was able to download and find the cygrunsrv.exe package.
thanks
I select other mirror ,and reinstall the cygwin ,this error was not happened.
Glad that fixed things.
Thanks,
-Joshua