I'm trying to compile u-boot for Raspberry pi 3 but I have an issue
with my cross-compiler on my Ubuntu 16.04. I installed gcc-arm-linux-gnueabhf with sudo apt-get install, it automatically
installed version 4.8.
When I ran make CROSS_COMPILe=arm-linux-gnueabhf- to make u-boot
files, make erros and said that it needs arm-linux-gnueabhf higher version>= 6. To solve this, I downloaded a new 7.4 version and add
it's path to ~/.bashrc file.
export
PATH="$PATH:/home/$USER/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin"
I run command arm-linux-gnueabhf-gcc --version. It still in 4.8.
Please help me look into it.
========================================================================
The issue was solved with reference form
https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-ARMCrossCompiler:GCC
Related
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
I successfully recompiled and installed linux kernel 4.2.0 on my ubuntu 15, I for the learning purposes tried to install another kernel 4.1.7 on my machine. I followed the exact same procedure to recompile and install it. I become successful to recompile kernel 4.1.7 but when i installed it and reboot my ubuntu and checked running kernel in it it still shows the 4.2.0 instead of 4.1.7.
what could go wrong in my second installation?
The process i followed to recompile and install both kernel is
1. downloaded the kernel from kernel.org
2. made the kernel directory in home and extract kernel.tar.xz there
3. in terminal go to the kernel directory
4. run this command sudo apt-get install gcc libncurses5-dev dpkg-dev
5. make menuconfig
6. saved the .config file with a different name i-e .config_aa
7. mv .config_aa .config
8. make -j 5 KDEB_PKGVERSION=1.RIBALINUX deb-dev
9. sudo make install
10. sudo reboot
11. checked kernel version using uname -r
You need to choose kernel for load in bootloader. On Ubuntu it is usually a GRUB2 (tutorial).
This step is missed in some manuals, because one usually intents to build kernel with newer version. After installation, the newest kernel version is arranged first, which is loaded by default.
I have gcc4.6 installed. I need 4.2 to be installed without disturbing current version.
OS - Ubuntu 12.04 LTS
Either install using --prefix configure switch to choose another path to install to, or --program-suffix switch, e.g. --program--suffix=-4.2. The docs have more information.
Please note that by default, the prefix will be /usr/local/, but the Ubuntu package will install to just /usr/, so things should be fine. However, if your $PATH lists /usr/local/bin before /usr/bin, you might still run into problems.
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.
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.