I use Ubuntu 14.04 with gfortran 4.8.4 and I need the version 4.9.X to compile some things...
I ran the command sudo apt-get gfortran-4.9
and then gfortran --version
, but I see that I have 4.8.4 installed. What could I do?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
update-alternatives
mechanism), or call the newer version explicitly i.e.gfortran-4.9
. If whatever you're building respects it, it may be sufficient to simply set an appropriate environment variable e.g.make "FC=/usr/bin/gfortran-4.9"
orexport FC=/usr/bin/gfortran-4.9; make