Install make 3.75 on ubuntu 15.10 - makefile

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.

Related

Install specific rebar3 version on mac

I want to use rebar3 with erlang 24. The problem is, that if I install the newest rebar3 version I get the necessity for erlang 25. So I installed erlang 24 first but it did not change anything. I tried to install older rebar3 version with whom erlang 24 is compatible but so far nothing has worked.
I tried port and brew, but they show me only rebar 19 is available for downloads.
When I clone the new rebar3 version from git, and switch to an old commit from rebar16 I cannot install it. Does anyone have any ideas what could work?
Get rid of your existing homebrew erlang (if any) then use kerl to install erlang, and finally build rebar3 from source. The thing I like about kerl is you can easily switch between multiple erlang installations. Here's the jist of it...
brew unlink erlang
cd ~/
curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod a+x kerl
./kerl build 24.3.4.7 24.3
mkdir kerlbins
./kerl install 24.3 ~/kerlbins/24.3
. ~/kerlbins/24.3/activate
git clone https://github.com/erlang/rebar3.git
cd rebar3/
./bootstrap
./rebar3 local install

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

Octave windows binaries including classdef

Are there any octave default branch binaries for windows available somewhere?
If not, is there a simple way of getting a version including classdef for Linux? simple, because usually I do not use Linux.
I don't think there are windows builds from default (aka development) available but you may ask on the help mailinglist. (Some users there build windows binaries with MXE from development sources)
If you want to build on GNU/Linux I would suggest Debian or Ubuntu in a VM. It is as easy as installing the dependencies, clone with hg, bootstrap, configure, make... You'll find instructions on the wiki http://wiki.octave.org/Octave_for_Debian_systems#Compiling_from_source
But always keep in mind that these are development sources which generally aren't suitable for productive use and may break sometime.
Here's how I ended up doing it (approximately and skipp'in all the failed attempts).
Install VirtualBox
Create new machine, mount ubuntu image, chose dynamic HDD size (or at least 10 GB)
Install Ubuntu. If strange mixed color screen appears on first boot:
[right] CTRL+F1
[right] CTRL+F7
Open Terminal (CTRL+ALT+T)
If sceen resolution cannot be made larger 640*480:
sudo apt-get install virtualbox-guest-dkms
sudo reboot
sudo apt-get install mercurial
hg clone http://www.octave.org/hg/octave -r default
sudo apt-get install gfortran debhelper automake dh-autoreconf texinfo texlive-latex-base texlive-generic-recommended epstool transfig pstoedit libreadline-dev libncurses5-dev gperf libhdf5-serial-dev libblas-dev liblapack-dev libfftw3-dev texi2html less libpcre3-dev flex libglpk-dev libsuitesparse-dev gawk ghostscript libcurl4-gnutls-dev libqhull-dev desktop-file-utils libfltk1.3-dev libgl2ps-dev libgraphicsmagick++1-dev libftgl-dev libfontconfig1-dev libqrupdate-dev libarpack2-dev dh-exec libqt4-dev libqscintilla2-dev default-jdk dpkg-dev gnuplot-x11 libbison-dev libxft-dev llvm-3.3 (takes a while)
./bootstrap
mkdir builddir
cd builddir
../configure --enable-jit --prefix=/opt/octave3.8 JAVA_HOME=/usr/lib/jvm/default-java LLVM_CONFIG=/usr/bin/llvm-config-3.2 CFLAGS="-O2 -march=native" CXXFLAGS="-O2 -march=native" (no TargetData.h found...)
make (takes half an hour or more)
make check (takes a while, gave a failed assertion)
make install
./run-octave

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.

Installing gcc 4.4.3 on Ubuntu 9.04

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.)

Resources