anycloudplus
Contributor
Contributor

cygserver-config error

Jump to solution

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.


Administrator@2k3 ~
$

"

How to solve the error

thanks

0 Kudos
1 Solution

Accepted Solutions
jpschnee
VMware Employee
VMware Employee

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.

-Joshua

View solution in original post

0 Kudos
7 Replies
jpschnee
VMware Employee
VMware Employee

Try right clicking the cygwin shell link and selecting "run as Administrator".  Then retry installing the service.

-Joshua
0 Kudos
anycloudplus
Contributor
Contributor

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 

0 Kudos
jpschnee
VMware Employee
VMware Employee

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?

  1. 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?

-Joshua
anycloudplus
Contributor
Contributor

I do not see "cygrunsrv.exe" on system under c:\cygwin\bin.

And I install cygwin of all the packages.

0 Kudos
jpschnee
VMware Employee
VMware Employee

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.

-Joshua
0 Kudos
anycloudplus
Contributor
Contributor

thanks

I select other mirror ,and reinstall the cygwin ,this error was not happened.

0 Kudos
jpschnee
VMware Employee
VMware Employee

Glad that fixed things.

Thanks,

-Joshua

-Joshua