I'm using a arm64 machine and trying to build a gcc cross-compiler, so i want to install both bison and flex, but i get this error(even after "sudo apt-get update && sudo apt-get upgrade")
Il pacchetto flex non ha versioni disponibili, ma è nominato da un altro
pacchetto. Questo potrebbe indicare che il pacchetto è mancante, obsoleto
oppure è disponibile solo all'interno di un'altra sorgente
E: Il pacchetto "flex" non ha candidati da installare
for both flex and bison.
What should i do?
Related
I tried setting up a Docker environment for my developing ventures:
I installed docker using the docs "Install docker engine" from their website and receive the following output:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
containerd.io ist schon die neueste Version (1.6.13-1).
docker-ce-cli ist schon die neueste Version (5:20.10.22~3-0~ubuntu-jammy).
docker-ce ist schon die neueste Version (5:20.10.22~3-0~ubuntu-jammy).
docker-compose-plugin ist schon die neueste Version (2.14.1~ubuntu-jammy).
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
cpu-checker ibverbs-providers ipxe-qemu ipxe-qemu-256k-compat-efi-roms libaio1
libbrlapi0.8 libcacard0 libfdt1 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0
libibverbs1 libiscsi7 libpmemobj1 librados2 librbd1 librdmacm1 libspice-server1
libusbredirparser1 libvirglrenderer1 msr-tools ovmf pass qemu-block-extra
qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils
qrencode seabios tree uidmap xclip
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 9 nicht aktualisiert.
2 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
then nothing more.
(well, my nvidia drivers are running bonkers at the moment.)
sudo docker run hello-world sudo: docker: Befehl nicht gefunden
I reinstalled maybe ten times now and have not a single clue how to pursue this further.
We run a dev-environment in docker that emulates a rather complex working environment, where servers push things to other servers etc. so I am depending on docker a lot and cannot work at the moment.
By now I am so confused, that I think starting from the beginning works best, thus I tried uninstalling following this one: https://askubuntu.com/questions/935569/how-to-completely-uninstall-docker
Now nothing works, not even installing ...
any hint is highly appreciated
I am writing the following code in TeXstudio:
% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
\documentclass{report}
% Este pacote abaixo é relacionado à acentuação.
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\begin{document}
\chapter{Isso é um capítulo}
\section{Esta é a primeira seção}
\section*{Esta é uma seção}
Meu primeiro documento. É isso aí
\subsection{Esta é uma subseção}
Conteúdo subseção
\subsubsection*{Esta é uma subsubseção}
\end{document}
And with option brazil at babel package I receive the error bellow:
File
Type
Line
Message
babel.sty
error
line 1042
Package babel Error: Unknown option `brazil'. Either you misspelled it. \ProcessOptions*
I am using:Ubuntu 22.04, TeXstudio 4.2.1 and babel 2020/09/01 3.48 The Babel package
I have already try to remove and install:
sudo apt-get install texlive-lang-portuguese
or
sudo apt-get install textlive-lang-all
and nothing works....
What is the problem and how can i solve it?
Found it.
There were two different packages locations in my machine.
~/.Tinytex
and
/usr/share/texlive
I have deleted the .Tinytex and everything works right now.
I'm trying to install jenkins in centos7.
i have the error bellow when i write this command:
sudo rpm --import sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.ke
erreur : sudo : l'importation de lecture a échoué (2).
erreur : rpm : l'importation de lecture a échoué (2).
How can i solve it please
What I try to do is to cross compile OpenCV from a x86 host machine to an ARM target machine (Raspberry Pi 2) with Java bindings.
All I've achieved is to compile OpenCV with Java bindings for x86 platform, or even OpenCV with NO Java bindings for ARM platform. However I cannot compile OpenCV with Java bindings for ARM platform.
I've kind of followed thousands of guides to do this. This is from OpenCV's official site, and seems to be very simple: http://docs.opencv.org/2.4/doc/tutorials/introduction/crosscompilation/arm_crosscompile_with_cmake.html
My host machine is the following:
$ uname -a:
Linux ubuntu 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 14:46:51 UTC 2015 i686 i686 i686 GNU/Linux
I've installed gcc and g++ cross compilation tools (gnueabi and gnueabihf):
$ sudo apt-get install gcc-arm-linux-gnueabi
$ sudo apt-get install g++-arm-linux-gnueabi
$ sudo apt-get install gcc-arm-linux-gnueabihf
$ sudo apt-get install g++-arm-linux-gnueabihf
$ which arm-linux-gnueabihf-gcc
/usr/bin/arm-linux-gnueabihf-gcc
$ which arm-linux-gnueabihf-g++
/usr/bin/arm-linux-gnueabihf-g++
Since I want to compile OpenCV with the Java bindings, I installed jdk and ant:
$ sudo apt-get install openjdk-7-jre
$ sudo apt-get install openjdk-7-jdk
$ sudo apt-get install ant
Then I add these lines to .bashrc file:
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
PATH=$JAVA_HOME/bin:$PATH
export PATH
Then I execute:
$ source $HOME/.bashrc
I've downloaded OpenCV's source code and moved to the platforms/linux folder as the official guide does:
$ cd ~/opencv/platforms/linux
$ mkdir -p build_hardfp
$ cd build_hardfp
Then in the "opencv/platforms/arm-gnueabi.toolchain.cmake" file, replaced these lines:
set(CMAKE_C_COMPILER arm-linux-gnueabi${FLOAT_ABI_SUFFIX}-gcc-${GCC_COMPILER_VERSION})
set(CMAKE_CXX_COMPILER arm-linux-gnueabi${FLOAT_ABI_SUFFIX}-g++-${GCC_COMPILER_VERSION})
by these:
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)
In order to use arm compiler instead of x86's.
Then I try to get cmake ready:
$ cmake -DBUILD_SHARED_LIBS=OFF -D BUILD_NEW_PYTHON_SUPPORT=NO -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..
Cmake's output tells it will use arm cross compiler for ARM platform target, but it will not use Java bindings:
...
-- Platform:
-- Host: Linux 4.2.0-16-generic i686
-- Target: Linux 1 arm
-- CMake: 3.2.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: Release
...
C++ Compiler: /usr/bin/arm-linux-gnueabihf-g++ (ver 5.2.1)
...
-- OpenCV modules:
-- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: androidcamera dynamicuda java python viz
So, I try to set cmake compile variables by myself without using cmake's toolchain file:
$ export CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc
$ export CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++
$ cmake -DBUILD_SHARED_LIBS=OFF -D BUILD_NEW_PYTHON_SUPPORT=NO ../../..
Now cmake's output tells it will include Java support, but it won't use arm cross compiler:
...
-- Platform:
-- Host: Linux 4.2.0-16-generic i686
-- CMake: 3.2.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: Release
...
C++ Compiler: /usr/bin/c++ (ver 5.2.1)
...
-- OpenCV modules:
-- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib java stitching superres ts videostab
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: androidcamera dynamicuda python viz
Of course, if I execute make command with this latest cmake configuration, this is the ".so" file I get:
$ readelf -h lib/libopencv_java249.so | grep Machine
Machine: Intel 80386
where it should tell:
Machine: ARM
So, once again: I can compile OpenCV with Java bindings for x86 platform, or either OpenCV with NO Java bindings for ARM platform, but not both.
How should I do this?
Thank you!
UPDATE 1:
#Notlikethat I forgot to tell I had already tried that (i.e. use ARM jdk instead of x86). I did not mention it because I though I should be using x86.
However, I have tried it again:
I've downloaded ARM's jdk, set JAVA_HOME and PATH variables properly to point this new jdk and tried cmake command.
The result is the same, it lets me compile for ARM without Java bingings, or for x86 with Java bindings.
UPDATE 2:
I've added the following variables to the "arm-gnueabi.toolchain.cmake" file:
set(JAVA_HOME /usr/lib/jvm/jdk1.7.0_60_ARM)
set(JAVA_AWT_LIBRARY $JAVA_HOME/include/jawt.h)
set(JAVA_JVM_LIBRARY $JAVA_HOME/jre/lib/arm/jvm.cfg)
set(JAVA_INCLUDE_PATH $JAVA_HOME/include/jni.h)
set(JAVA_INCLUDE_PATH2 $JAVA_HOME/include/linux/jni_md.h)
set(JAVA_AWT_INCLUDE_PATH $JAVA_HOME/include/jawt.h)
Now if I execute:
$ cmake -DBUILD_SHARED_LIBS=OFF -D BUILD_NEW_PYTHON_SUPPORT=NO -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..
the output shows that java module is still unavailable, but at least, one of its key dependencies is ok (JNI):
...
-- Java:
-- ant: NO
-- JNI: $JAVA_HOME/include/jni.h $JAVA_HOME/include/linux/jni_md.h $JAVA_HOME/include/jawt.h
-- Java tests: NO
...
I'm pretty sure the problem here is the fact that ant is not found, which I can't understand.
Ant is installed:
$ echo $PATH:/usr/lib/jvm/jdk1.7.0_60_ARM/bin:/opt/apache/ant/apache-ant-1.9.6/bin:...
I've retried by adding the following variables to the "arm-gnueabi.toolchain.cmake" file, without success:
set(ANT_HOME /opt/apache/ant/apache-ant-1.9.6)
set(JAVA_ANT $ANT_HOME/bin/ant)
I run Linux Mint 16 (petra) and have increasingly encountered issues where it says it needs a package, it even tells me what it needs me to install, I try to install exactly that package, and then it says "hey that package doesnt exist! haha!"
It is becoming incredibly frustrating and unfortunately I'm totally out of luck when it comes to reinstalling the OS because I need an ethernet cable and a router both of which I do not have. I have tried to start learning Erlang which has become impossible because I can't even get it installed (see my previous stackoverflow post) and now I can't even get rails working, which is something I was working on very regularly prior to starting an internship this summer.
Here is my issue.
core#core ~ $ rvm requirements
Checking requirements for mint.
Installing requirements for mint.
Updating system..core password
required for 'apt-get --quiet --yes update': ...............
Installing required packages: libreadline6-dev, libyaml-dev, autoconf,
libgdbm-dev, libncurses5-dev, automake, libtool, libffi-dev..... Error
running 'requirements_debian_libs_install libreadline6-dev libyaml-dev
autoconf libgdbm-dev libncurses5-dev automake libtool libffi-dev',
showing last 15 lines of
/home/core/.rvm/log/1404864015/package_install_libreadline6-dev_libyaml-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool_libffi-dev.log
is only available from another source
Package libtool is not available, but is referred to by another
package. This may mean that the package is missing, has been
obsoleted, or is only available from another source
E: Unable to locate package libreadline6-dev E: Package 'autoconf' has
no installation candidate E: Unable to locate package libgdbm-dev E:
Unable to locate package libncurses5-dev E: Package 'automake' has no
installation candidate E: Package 'libtool' has no installation
candidate E: Unable to locate package libffi-dev
+ return 100
+ return 100 Requirements installation failed with status: 100.
I tried to install several of those packages, and then I get the message "hey that package doesn't exist!"
What can I do?
Please help me resolve this so I can become productive again. Very very much appreciated in advance!
UPDATE: iain suggested that I run a command which I did and it produced this:
core#core ~ $ sudo apt-get install autoconf bison build-essential
libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
[sudo] password for core: Reading package lists... Done Building
dependency tree Reading state information... Done Package
autoconf is not available, but is referred to by another package. This
may mean that the package is missing, has been obsoleted, or is only
available from another source
E: Package 'autoconf' has no installation candidate E: Unable to
locate package libreadline6-dev
These are the packages I install to get Ruby to build on an Ubuntu system
make
autoconf
libtool
build-essential
libffi-dev
libgdbm-dev
libncurses5-dev
libreadline-dev
libssl-dev
libyaml-dev
zlib1g-dev
I got most of that list from the ruby-build wiki, which suggests:
apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
but I add in make too, for good measure.
I got this from an Ubuntu box provided by Vagrant, the hashicorp/precise64 which should (hopefully) be close enough to what Mint is using to check against.
#
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
The MD5 may help:
$ md5 sources.list
MD5 (sources.list) = b966730006afc9e02e6d56d7ceb96af5