Vincent De Groote wrote: > > > Help request cancelled. > The symbolic link was not built properly (I forgot the -s argument)
Sounds more to me like you forgot to use the alternatives program to configure the alternatives and have been messing around manually in its private data directories and broken it. (You're not the first person to do this. For some reason it seems to be a hard-to-resist temptation for people to just dive into the data directories and start tampering, rather than say reading the alternatives readme or man/info page which would explain the easy-to-use command-line syntax by which alternatives.exe will switch over the symlinks correctly.) Probably the easiest way to repair it would be to manually run all the /etc/preremove/ scripts to uninstall the alternatives links, then run the /etc/postinstall/ scripts to re-create them. You'll need to run these files: /etc/preremove/gcc-g++.sh /etc/preremove/gcc-g77.sh /etc/preremove/gcc-gdc.sh /etc/preremove/gcc-gnat.sh /etc/preremove/gcc-gpc.sh /etc/preremove/gcc-java.sh /etc/preremove/gcc.sh /etc/preremove/gcc4-ada.sh /etc/preremove/gcc4-core.sh /etc/preremove/gcc4-fortran.sh /etc/preremove/gcc4-g++.sh /etc/preremove/gcc4-java.sh and then these files: /etc/postinstall/gcc-g++.sh.done /etc/postinstall/gcc-g77.sh.done /etc/postinstall/gcc-gdc.sh.done /etc/postinstall/gcc-gnat.sh.done /etc/postinstall/gcc-gpc.sh.done /etc/postinstall/gcc-java.sh.done /etc/postinstall/gcc.sh.done /etc/postinstall/gcc4-ada.sh.done /etc/postinstall/gcc4-core.sh.done /etc/postinstall/gcc4-fortran.sh.done /etc/postinstall/gcc4-g++.sh.done /etc/postinstall/gcc4-java.sh.done which should work if you just cut and paste those lists into a bash shell. Attached are the two scripts that will ship with the next release of GCC to manage switching all the alternatives at once to select either gcc-3 or gcc-4 as the default compiler, just to show everyone the proper way how to drive the alternatives system from an end-user's point of view. cheers, DaveK
#!/bin/bash # We only switch the alternatives that exist for both compilers; # gdc, gpc, g77 and gfortran never get switched. for x in gcc g++ gcj gnat ; do /usr/sbin/alternatives --set $x /usr/bin/$x-4.exe done
#!/bin/bash # We only switch the alternatives that exist for both compilers; # gdc, gpc, g77 and gfortran never get switched. for x in gcc g++ gcj gnat ; do /usr/sbin/alternatives --set $x /usr/bin/$x-3.exe done
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/