unable execute arm-cc on docker images ( ubuntu 12.04 base ) - c

i want execute arm-cc binary on docker images (ubuntu 12.04 base)
but can't
the process was below ...
download arm CC using wget ( https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10/+download/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.xz )
uncompress the file
execute arm cc (arm-linux-gnueabi-gcc)
arm cc file is symbolic link
arm-linux-gnueabihf-gcc -> arm-linux-gnueabihf-gcc-4.8.2
and error occurred ...
gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-gcc: Command not found
what should I do ?
Docker file contents is below
Ubuntu as base image
FROM ubuntu:12.04
MAINTAINER ...
update ubuntu image
RUN apt-get update
install essential package
RUN apt-get -y install vim
RUN apt-get -y install wget
RUN apt-get -y install bzip2
RUN apt-get -y install git
RUN apt-get -y install patch
RUN apt-get -y install make
RUN apt-get -y install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev
set environment variable so I know I'm in a container
ENV ARM_CROSS_COMPILER TRUE
End Dockerfile

SOLVED
my machine is 64-bit and armcc executable is 32-bit.
when i was execute it on native linux, not occurs problem.
but on docker, error occurred. i tried 64-bit compiler execution, well
running.

Related

installing R 4.0.2 in ubuntu 18.04

I am trying to install R version 4.0.2 on ubuntu 18.04 but it shows this message:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 4.0.3-1.2004.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1.2004.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You have to remove problematic PPA (it does no publish packages for 18.04 LTS - bionic) first with:
sudo add-apt-repository -r ppa:grass/grass-stable
and then update your package lists
sudo apt-get update
and install new updates with their dependencies by
sudo apt-get dist-upgrade
You have added R 3.5 repository (see bionic-cran35 in its URL), instead of needed R 4.0 (bionic-cran40). You have to remove wrong repository with
sudo add-apt-repository -r 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
and then add correct one:
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt-get dist-upgrade
sudo apt-get install r-base r-base-core r-recommended
In order to install the last R version in Ubuntu LTS >= 16.04. (amongst other 18.04) follow the instructions at CRAN. If you have already installed the distro version of R remove it with the package manager.
Here, I made a summarized version of the instructions.
Note that this instructions are valid for any LTS. I tried them with 18.04. and worked smoothly.
update indices
sudo apt update -qq
install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
Add the signing key (by Michael Rutter) for these repos
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
Add the R 4.0 repo from CRAN
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Install R and its dependences
sudo apt install --no-install-recommends r-base
Ready, you can execute R by just entering R on your terminal.

How to uninstall graphics.h from ubuntu?

I have installed graphics.h using the following steps:
First install build-essential by typing
sudo apt-get install build-essential
Install some additional packages by typing
sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 \
guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \
libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev \
libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev \
libslang2-dev libasound2 libasound2-dev
Now extract the downloaded libgraph-1.0.2.tar.gz file.
Go to the folder where the files were extracted and run the following commands:
./configure
make
sudo make install
sudo cp /usr/local/lib/libgraph.* /usr/lib
But now how do I uninstall it again?

Dockerfile - Debian apt-get php-xdebug failing

I am trying to create a docker image that has the following:
php7
apache2
git
xdebug
In my dockerfile I have the official php7 with apache image as the base.
I can run apt-get update.
I have installed git successfully.
But when I run apt-get install -y php-xdebug I get the following:
E: Unable to locate package php-debug
Dockerfile:
FROM php:7.0-apache
RUN apt-get update && apt-get install -y git
RUN apt-get install -y php-xdebug

How to install apt-get without having Makefile and GCC?

I want to install "gcc", but don't have make, apt-get and yum. I am using "mlinux" as OS for gateway.

How to install the latest version of octave in ubuntu 14.04

sudo apt-get build-dep octave is not working. The error message is "E: Build-Depends dependency for octave cannot be satisfied because the package automake cannot be found". I have modified the /etc/apt/sources.list file with deb replaced by deb-src. Even when I try sudo apt-get install octave, an error is displayed that the package is not located.
Octave packages http://wiki.octave.org/Octave_for_Debian_systems
Many Octave packages are also distributed by your Linux distribution. These are tested to work the best with your Octave version. For example:
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics
Octave's Personal Package Archive (PPA) for Ubuntu
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
Or
sudo apt-get autoclean
You can also Try with
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.bz2
tar -xvf octave-4.0.0.tar.bz2
cd octave-4.0.0
./configure
make
sudo make install
More version are available at ftp://ftp.gnu.org/gnu/octave
Or
Adding a line to your /etc/apt/sources.list
amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist
i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download

Resources