Exe's compilation on Solaris 11 env using gcc -
i on solaris 11 environment , gcc-3.4.6 installed on it. problem not able compile exe's there, error is
-sh: gcc: gcc: cannot execute [invalid argument]
even if write gcc
gives same error. kindly help.
unlike in solaris 10, on solaris 11 gcc not installed default. fear not.
by far easiest use ips install using commands below (while being root or other superuser):
pkg install pkg://solaris/developer/build/gnu-make pkg install pkg://solaris/developer/build/make pkg install pkg://solaris/developer/gcc-45 pkg install pkg://solaris/system/header pkg install pkg://solaris/developer/build/autoconf pkg install pkg://solaris/developer/build/automake-110
this give tools typically need build various open source software packages.
note of packages have version number in package name itself, e.g. gcc-45. may able find later versions in package repository, example solaris 11.2 beta you'll find have choice of gcc 4.5, 4.7 or 4.8. same applies automake available in v1.11.
(recipe posting here)
Comments
Post a Comment