Installing gcc 4.4.3 on Ubuntu 9.04 - gcc

I have Ubuntu 9.04 and need to install gcc 4.4.3. Does anyone know how would I do that?
I can't do it with any other versions except maybe gcc 4.4.x.
Currently ubuntu 9.04 has only 4.3.3 available but that is not sufficient for me.
Thank you in advance!

try sudo apt-get install gcc=4.4.3
I'm not sure if that's the exact version, but that's how you specify which version you want.

You can build gcc 4.4.3 from source - http://gcc.gnu.org/install/
Or you can install from jaunty repository - http://packages.ubuntu.com/ru/jaunty/gcc
Add in your /etc/apt/sources.list - deb http://cz.archive.ubuntu.com/ubuntu jaunty main
Then
sudo apt-get update
sudo apt-get install gcc

GCC is not that hard to compile, even if you do the entire bootstrap compile.

You can try:
Updating Ubuntu: come on, it's free, don't keep the old stuff lingering around...
installing the .deb packages from a later Ubuntu release. I would advise against using the full repository, but it might be you need to go dependency hunting (for the right version of glibc, libstdc++ etc.)

Related

Installing latest version of gmsh

How can I install latest version of gmsh, which is gmsh 3.0.7 on ubuntu 16.04LTS please?
Using sudo apt install gmsh it only installs gmsh 2.10.1.
I also did update and upgrade my system but still only version 2.10.1.
Any suggestion please?
Cheers
First, I prefix this by saying I'm nothing like an expert, but this worked for me:
Uninstall the repository version:
sudo apt-get remove gmsh
Download a zipped copy of the latest stable release for linux from the gmsh website:
http://gmsh.info/#Download
Unzip gmsh:
tar -xvzf gmsh-3.0.6-Linux64.tgz (or whatever version you've downloaded)
This makes a folder gmsh-3.0.6-Linux64 containing gmsh which is portable. Put it somewhere you can find it. I put it in my home directory.
Navigate to the bin folder:
cd ~/gmsh-3.0.6-Linux64/bin
From the bin folder you can start gmsh by typing:
./gmsh
I made it generally available at the command line by editing my .bashrc, adding this line:
export PATH="$PATH:/home/bob/gmsh-3.0.6-Linux64/bin"
You will need to make the path appropriate for your location.
Hope this works.
if it can help someone here, I recently compiled GMSH from source without difficulty, simply with the typical combination of cmake and make; their GitLab repository explains these few steps to follow
https://gitlab.onelab.info/gmsh/gmsh
Although this may vary, pay attention to few libraries which weren't present on my fresh Ubuntu installation (libpng, libjpeg, and FLTK libraries), cmake properly highlighted these missing libraries. FLTK is needed for the UI.
Ubuntu 20.04 LTS has gmsh version 4.4.1 in the official repositories. So installation is again simply this:
sudo apt install gmsh

Install make 3.75 on ubuntu 15.10

I am new to ubuntu. I am looking for any help in installing GNU Make version 3.75 or other older version on ubuntu 15.10. I understand that the package for older version doesnot exist for ubuntu 15.10 and I am not able to get the instruction anywhere on how to get the packages.
Any help regarding this is appreciated.TIA
sudo apt-get build-dep make
wget http://ftp.gnu.org/gnu/make/make-3.75.tar.gz
tar xvf make-3.75.tar.gz
cd make-3.75
./configure
make
sudo make install prefix=/opt/make-3.75
# or sudo make install to install it into /usr/local
Why do you need this? As arved suggests: if your Makefiles are 20 years old and incompatible with current versions of make, and can't be fixed, you probably have bigger problems elsewhere. Whatever those Makefiles try to do may require some tweaking to work on Ubuntu 15.10.

ns-2 - ./validate fails in Ubuntu 13.10

I was able to make ns-2 (ns-allinone-2.35) install on Ubuntu 13.10 successfully by modifying linkstate/ls.h, but one test case in the validation suite always seems to fail - tcpLinux. This bothers me because validation works properly in Ubuntu 12. Would you know how to fix this or if this is an issue at all?
Thanks in advance!
So it looks like ns-2 doesn't play nice with the newer versions of gcc.
Before installing, do
export CC=gcc-4.4 CXX=g++-4.4
If you don't have these older versions, use
sudo apt-get install gcc-4.4 g++-4.4
Using this method, I didn't have to modify any source code before building.

Install gcc-c++ on CentOS without yum

Can I install gcc++ on CentOS 6.x without `yum install gcc-c++ ....' ?
Is there any .tar or .rpm package available for download?
Yum will install rpm from it's repository.
So I don't understand why you want to avoid yum, it will solve dependencies and install them as well.
However, here is official RPM repository mirror (one of many):
http://centos.arminco.com/5/os/i386/CentOS/
Here is list of all mirrors : http://www.centos.org/modules/tinycontent/index.php?id=30
You will need at least 3 RPMs:
gcc-4.4.6-3.el6.i686.rpm
gcc-c++-4.4.6-3.el6.i686.rpm
libgcc-4.4.6-3.el6.i686.rpm
For compilation of C/C++ you will also need libstdc++, glibc, etc
When you run
yum install gcc
Everything is done
As you did not specified architecture I assume i386, but URL is very similar for x86_64:
http://centos.arminco.com/6/os/x86_64/Packages/
If you want to install it as a local user (or as a superuser)
GNU GSRC provides an easy way to do so
Link: http://www.gnu.org/software/gsrc/
After installation via bzr, simply do these:
./bootstrap
./configure --prefix=~/local
make -C gnu/gcc
(or make -C gnu/gcc MAKE_ARGS_PARALLEL="-jN" to speed up for a N-core system)
make -C gnu/gcc install

How was my running php compiled?

I'm trying to compile a new instance of PHP (5.4.0) from the source code and want to keep compatibility with the one (PHP 5.3.6-13ubuntu3.6) already installed from the distro, Ubuntu-11.10. That is, I want to run ./configure with the same directives as the installed PHP.
I always could see the ./configure command outputted by phpinfo() but this time, for my surprise, it's not provided.
Do you know of any flag that prevent phpinfo of outputting the compile configuration? Or,
Do you know of any other way to get how PHP was compiled?
Original answer
There should be a script php-config you can install on ubuntu to get the configure parameters used for php.
sudo apt-get install php5-dev
php-config --configure-options
2023 Update
The php-config executable is currently present in the generic package phpX.Y-dev, where X and Y is the major and minor version of the php package installed on your system. Also, the name of the executable reflects your php version.
sudo apt-get install php8.1-dev
php-config8.1 --configure-options
A list of popular ubuntu version and corresponding package:
Ubuntu 18.04: php7.2-dev
Ubuntu 20.04: php7.4-dev
Ubuntu 21.04: php7.4-dev
Ubuntu 21.10: php8.0-dev
Ubuntu 22.04: php8.1-dev
Ubuntu 22.10: php8.1-dev
Ubuntu 23.04*¹: php8.1-dev
*¹ Lunar Lobster nightly, scheduled to be released as 23.04
According to this bug report, the Configure Command output was intentionally suppressed from Ubuntu & Debian PHP builds.
Then recommend installing the source package via apt-get source php5:
If you want to see how PHP is built in Ubuntu, apt-get source php5,
and peruse debian/rules, the ./configure output in phpinfo() is, as the
changelog for the patch states, entirely misleading and not terribly
informative.

Resources