How to compile Bazel on CentOS 6.x? [closed] - centos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
As of today, only Ubuntu packages are available.
Can Bazel be compiled on CentOS 6.x?

Bazel is tested to be able to compile on CentOS 6.7 using the docker image produced by this docker file.
The C++ compiler shipped with CentOS 6.7 is too old to compile Bazel, so the trick is simply to use a newer one:
# Install the dependencies of Bazel
yum install java-1.8.0-openjdk-devel wget which findutils binutils gcc tar gzip zip unzip java java-devel git clang zlib-devel gcc-c++
# Install a newer gcc
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils
# Set the path to java and gcc
export JAVA_HOME=/usr/lib/jvm/java-1.8.0
export CC=/opt/rh/devtoolset-2/root/usr/bin/gcc
# Clone the repository
git clone https://github.com/bazelbuild/bazel /tmp/bazel
# Compile bazel
cd /tmp/bazel; ./compile.sh
# Copy the bazel binary to some binary directory
cp /tmp/bazel/output/bazel ~/bin

Related

i was upgrading parrot os and it failed realtek driver and said to use dpkg -a --configure [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 months ago.
Improve this question
dpkg --configure -a
Setting up realtek-rtl8188eus-dkms (5.3.9~git20220829.4ba8e08-0parrot1) ...
Removing old realtek-rtl8188eus-5.3.9~git20220829.4ba8e08 DKMS files...
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20220829.4ba8e08/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20220829.4ba8e08/source/dkms.conf)
Module realtek-rtl8188eus-5.3.9~git20220829.4ba8e08 for kernel 5.18.0-14parrot1-amd64 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.
8188eu.ko:
Uninstallation
Deleting from: /lib/modules/5.18.0-14parrot1-amd64/updates/dkms/
Original module
No original module was found for this module on this kernel.
Use the dkms install command to reinstall any previous module version.
depmod....
Deleting module realtek-rtl8188eus-5.3.9~git20220829.4ba8e08 completely from the DKMS tree.
Loading new realtek-rtl8188eus-5.3.9~git20220829.4ba8e08 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/realtek-rtl8188eus-5.3.9~git20220829.4ba8e08/dkms.conf)
Building for 6.0.0-2parrot1-amd64
Building initial module for 6.0.0-2parrot1-amd64
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20220829.4ba8e08/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.0.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20220829.4ba8e08/build/make.log for more information.
dpkg: error processing package realtek-rtl8188eus-dkms (--configure):
installed realtek-rtl8188eus-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
realtek-rtl8188eus-dkms
VERSION ID5.1
VERSION 5.1 Electro Ara
VERSION CODENAME=ara
6.0.0-2parrot1-amd64
any ideas for trouble shoot
Kernel VERSION ID5.1 VERSION 5.1 Electro Ara VERSION CODENAME=ara 6.0.0-2parrot1-amd64 not supported to that device i got some problem with you, downgrade to the stable kernel is the fast way solve this error
deleting the old not installable packages will fix it use:
sudo rm -rf /usr/src/realtek-rtl8*
and
sudo rm -rf /usr/src/r8168-8.050.03/
it would be a real pain in the ass to fix so the most straightforward way to fix it as a whole is to recompile the kernel for Parrot os. download the lastest kernel from kernel.org, untar it and then recompile it and reinstall with a couple of commands and it should work as expected with no errors.

Debian package postgresql-9.3-postgis-2.1 suddenly stopped installing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Literally overnight, the postgresql-9.3-postgis-2.1 package stopped successfully installing on Debian 7.6. I am not seeing much online and the postgresql IRC seems to be unaware of the issue.
The error I recieve:
root#debian:/home/vagrant# apt-get install postgresql-9.3-postgis-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-9.3-postgis-2.1 : Depends: liblwgeom-2.1.4 (>= 2.1.2) but it is not going to be installed
Recommends: postgis but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Installation steps:
echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
apt-get update -y
apt-get install -y postgresql-9.3-postgis-2.1
Anyone else experiencing this error? Looks like liblwgeom was updated this morning.
I was able to get past the issue on my debian wheezy by doing this:
sh -c 'echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list'
apt-get update
apt-get install libjson-c2
apt-get install liblwgeom-2.1.4
apt-get install -y postgresql-9.3-postgis-2.1
Generally, if you have problems with apt.postgresql.org, please use the mailing list: pgsql-pkg-debian#postgresql.org
We are now rebuilding postgis on wheezy with backports disabled.

How to install docker on CentOS 7? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 25 days ago.
Improve this question
After installing EPEL repository and enabling EPEL, I tried the following:
# yum install docker-io || yum --enablerepo=epel install docker-io
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* epel: mirrors.yun-idc.com
* extras: mirrors.btte.net
* updates: mirrors.btte.net
No package docker-io available.
Error: Nothing to do
In CentOS 7, how can I install docker?
As described here, docker is inside the CentOS-Extras repository of CentOS 7 and can be installed without the need for enabling EPEL.
Please note: As of CentOS 7, the correct name of the package should be simply docker, while in the EPEL repository for CentOS 6, it is yet called docker-io.) I guess that's the problem why it fails for you. Hope this helps!
Some additional comments (thanks to #Martin Preusse for the hints):
The packages in the extras repository are a little bit outdated right now. Available version is 0.11.1, while the current stable version of docker is 1.2.0.
While docker was available in the EPEL repository for CentOS 6 as docker-io (because docker is conflicting with the package name of a system tray dock), it is not available in the beta EPEL repository for CentOS 7. And even worse: The version in the EPEL for CentOS 6 is 1.1.2 and much newer than the current version in the official extras repository of CentOS 7.
It wasn't optimal, but I pulled a recent rpm from FC19 and used that on CentOS7. I used docker-io-1.1.2-3.fc19.x86_64 from:
http://rpm.pbone.net/index.php3/stat/4/idpl/27150558/dir/fedora_19/com/docker-io-1.1.2-3.fc19.x86_64.rpm.html
and then performed a local rpm install. I have not had any issues. My CentOS version is CentOS Linux release 7.0.1406 (Core)
This wasn't my preferred way of doing this, but it was better than being so far back in terms of versions.
I have tried with below command it is working.
yum install -y docker.x86_64
You can install docker using repo or a package file as below:
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Verify that the fingerprint matches 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35 and accept the GPG key if requested to do so.
For the installation of a particular version you can refer the command below :
yum list docker-ce --showduplicates | sort -r
OR
You can also install it without adding the repository on the server.
Installation steps using the package download Visit this link: https://download.docker.com/linux/centos Then select your preferred CentOS version. Once you've found the.rpm file for the Docker version you wish to instal, navigate to x86 64/stable/Packages/.

Install sbt on ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have installed sbt on Ubuntu.
:~/bin/sbt/bin$ ls
classes sbt sbt-launch.jar target
jansi.jar sbt.bat sbt-launch-lib.bash win-sbt
However, whenever I try to launch sbt (from the same directory where sbt is located) it does not work:
No command 'sbt' found, did you mean:
Command 'skt' from package 'latex-sanskrit' (universe)
Command 'sb2' from package 'scratchbox2' (universe)
Command 'sbd' from package 'cluster-glue' (main)
Command 'mbt' from package 'mbt' (universe)
Command 'sbmt' from package 'atfs' (universe)
Command 'lbt' from package 'lbt' (universe)
Command 'st' from package 'suckless-tools' (universe)
Command 'sb' from package 'lrzsz' (universe)
I am new to linux and I have no idea how to tackle this issue.
The simplest way of installing SBT on ubuntu is the deb package provided by Typesafe.
Run the following shell commands:
wget http://apt.typesafe.com/repo-deb-build-0002.deb
sudo dpkg -i repo-deb-build-0002.deb
sudo apt-get update
sudo apt-get install sbt
And you're done !
It seems like you installed a zip version of sbt, which is fine. But I suggest you install the native debian package if you are on Ubuntu. That is how I managed to install it on my Ubuntu 12.04. Check it out here:
http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html
Or simply directly download it from here.
No command sbt found
It's saying that sbt is not on your path. Try to run ./sbt from ~/bin/sbt/bin or wherever the sbt executable is to verify that it runs correctly. Also check that you have execute permissions on the sbt executable. If this works , then add ~/bin/sbt/bin to your path and sbt should run from anywhere.
See this question about adding a directory to your path.
To verify the path is set correctly use the which command on LINUX. The output will look something like this:
$ which sbt
/usr/bin/sbt
Lastly, to verify sbt is working try running sbt -help or likewise. The output with -help will look something like this:
$ sbt -help
Usage: sbt [options]
-h | -help print this message
...
As an alternative approach, you can save the SBT Extras script to a file called sbt.sh and set the permission to executable. Then add this file to your path, or just put it under your ~/bin directory.
The bonus here, is that it will download and use the correct version of SBT depending on your project properties. This is a nice convenience if you tend to compile open source projects that you pull from GitHub and other.
My guess is that the directory ~/bin/sbt/bin is not in your PATH.
To execute programs or scripts that are in the current directory you need to prefix the command with ./, as in:
./sbt
This is a security feature in linux, so to prevent overriding of system commands (and other programs) by a malicious party dropping a file in your home directory (for example). Imagine a script called 'ls' that emails your /etc/passwd file to 3rd party before executing the ls command... Or one that executes 'rm -rf .'...
That said, unless you need something specific from the latest source code, you're best off doing what paradigmatic said in his post, and install it from the Typesafe repository.

Install postgres 9.0 in debian lenny [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Dear all,
My system has the following distribution details
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 5.0 (lenny)
Release: 5.0
Codename: lenny
I need to install postgres 9.0 in this machine , but I cannot find any stable lenny packages for postgres 9.0 , Is there any other way to do this
Any suggestion would be appreciated !
Thanks to the new debian backports suite, here's how to install PostgreSQL 9.0 on Debian lenny:
Add the following to /etc/apt/sources.list:
deb http://backports.debian.org/debian-backports lenny-backports main
deb http://backports.debian.org/debian-backports lenny-backports-sloppy main
Then run these 2 commands
apt-get install -t lenny-backports postgresql-common
apt-get install -t lenny-backports-sloppy postgresql-9.0 postgresql-client-9.0 postgresql-contrib-9.0
Note that this utilizes the new lenny-backports-sloppy backport suite - please read the announcement in order to be aware of the trade offs of using this suite.
Installing from source is quite easy:
Basically: Download postgresql-9.0.1.tar.bz2
tar xjf postgresql-9.0.1.tar.bz2
cd postgresql-9.0.1
./configure
make
make install
Details here
thanks leonbloy the backport for lenny is no longer supported. use this site to download
http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/
wget http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-version.tar.bz2
Then follow leonbloy's instructions above and read the file INSTALL when you uncompress the file.