Pre-install Cygwin
Hi,
Would it be possible to have Cygwin pre-installed on the build worker image?
Regards,
Alex
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 20 Oct, 2014 05:30 PM
Could you drop a link on installer please?
2 Posted by ajlennon on 20 Oct, 2014 06:39 PM
This is the standard bootstrap for a Cygwin 32-bit installation. There is also a 64-bit build but (and I might be wrong here) I think the 32-bit is good enough for whatever is likely to be needed...
https://cygwin.com/setup-x86.exe
It goes off, grabs some base files and a mirrror, then lets you choose which components to install, which is perhaps an issue.
There is some command line automation and fwiw this is what I arrived at with Mladen Mihajlovic to set a mirror and to grab the needed packages to build Mono
- 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-gcc -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config > NUL'
ref: https://github.com/DynamicDevices/mono/blob/master/appveyor.yml
3 Posted by ajlennon on 20 Oct, 2014 06:40 PM
(If you do this in an interactive manner then it'll go through a UI with you and let you select fairly self-explanatory packages to install)
Support Staff 4 Posted by Feodor Fitsner on 20 Oct, 2014 07:03 PM
OK, thanks! Will take a look.
5 Posted by Lars Brinkhoff on 23 Oct, 2014 06:08 AM
I would suggest Cygwin64. It seems to be the way of the future.
https://cygwin.com/setup-x86_64.exe
6 Posted by ajlennon on 23 Oct, 2014 07:25 AM
I'm not so sure that there are any advantages in using x64.
I did look into some threads on this prior to making the suggestion and the impression I received was that x32 was the way to go.
Are there any benefits to using x64?
7 Posted by Lars Brinkhoff on 23 Oct, 2014 08:46 AM
I was under the impression that Cygwin64 was more actively developed, and that Cygwin32 was on its way out. But now that I did some research, I couldn't confirm that.
Cygwin64 doesn't yet have all the packages that Cygwin32 does, so that would be a reason to go with the 32-bit version.
8 Posted by ajlennon on 23 Oct, 2014 08:51 AM
My current rule of thumb is that x64 builds cause problems and don't offer anything significant over and above x32 builds.
I do believe historically that's been true of various software packages, but it's of course not always going to be true and at some point in time x64 will be the appropriate way to go.
So not disagreeing with you here, just wanting to garner some feedback on where we are with the x32 -> x64 process in general.
I can't see the original links I was reading but it was this type of thing wrt Cygwin
http://stackoverflow.com/questions/18329233/is-it-advisable-to-switch-from-cygwin-32bit-to-cygwin-64bit
Cheers, Alex
Support Staff 9 Posted by Feodor Fitsner on 24 Oct, 2014 04:53 AM
Hi guys,
We've installed Cygwin both x86 and x64 to a separate build worker image called
Unstable
. You can choose this image on Environment tab of project settings or specify inappveyor.yml
:The command that was used to install cygwin:
10 Posted by andy on 24 Oct, 2014 04:56 AM
Cool! Is setup-x86.exe available in path, such that we can install other packages?
Support Staff 11 Posted by Feodor Fitsner on 24 Oct, 2014 04:59 AM
Nope. It's been removed.
12 Posted by andy on 24 Oct, 2014 05:05 AM
Is it possible to maintain a copy of setup-x86.exe in cygwin install directory, such that we wouldn't have to download it manually again?
Support Staff 13 Posted by Feodor Fitsner on 24 Oct, 2014 05:17 AM
Done.
C:\cygwin\setup-x86.exe
14 Posted by ajlennon on 24 Oct, 2014 08:19 AM
Great news. Thanks Feodor
15 Posted by andy on 24 Oct, 2014 09:18 AM
Have just tested and it works as expected. Thanks!
16 Posted by ajlennon on 25 Oct, 2014 09:04 AM
Works for me too :)
17 Posted by Lars Brinkhoff on 27 Oct, 2014 01:23 PM
Splendid! No more build timeouts due to slow Cygwin installation (when the build cache is empty).
ajlennon closed this discussion on 30 Oct, 2014 03:51 PM.