sudo apt install python3-dev for windows - django

I'm trying django-oscars demo and I'm wanted to test it out but I'm literally stuck on the first part lol. I need help since I can't use sudo for windows what should I do then? "sudo apt install python3-dev" djang-oscar

Related

Install redis-cli only on CentOS

How can I install redis-cli only on CentOS, I know how to do it on ubuntu "sudo apt-get install redis-tools" but looking for similar package for CentOS.
If you are using amzn linux 2:
sudo amazon-linux-extras install epel -y
sudo yum update
sudo yum install redis
I am familiar with this approach:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
cp src/redis-cli /usr/local/bin/
chmod 755 /usr/local/bin/redis-cli
as you can see above, here you have to compile the source code using make. You hence need to make sure that you have c compiler on your OS. If you do not, then this can help you:
sudo yum install gcc
Also be aware, that this approach will also create another executables in src/ folder. I recommend you to check this out here.
hope it helped, have a nice day!

amazon-linux-extras specific version

I am trying to install a specific version using amazon-linux-extras but I have no idea how to do it. The usual way of doing it with yum seems to not work. Is there any way to do it?
sudo amazon-linux-extras install -y tomcat8.5
The command above installs the latest.
According to the docs, the format is topic=version if you want to install a specific version so try something like:
$ sudo amazon-linux-extras install tomcat8.5=8.5.31
References:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html#extras-library

Dockerfile fails with install forever

I'm running a docker and its construction fails with this output messsage:
docker.errors.BuilError: The command '/bin/sh -c apt-get install npm'
returned a non-zero code: 1
Dockerfile has this code:
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-get install -y nodejs
RUN apt-get install npm
RUN npm install forever -g
Otherwise I can correctly execute the same commands just directy at command line outside docker's construction, and on Ubuntu 14:04.
Also I've runned another version of dockerfile without this commands, and it constructs dockers correctly.
Can you help me, please?
Thanks a lot.
I think you must pass the '-y' flag on install npm since it means 'yes' to apt-get prompt. If you look closely the other install commands already have it.

Can I specify the rabbitmq-server version when installing on a linux box?

When doing:
sudo apt-get install -y -qq --force-yes rabbitmq-server-3.6.6
the return is:
>E: Unable to locate package rabbitmq-server-3.6.6
>E: Couldn't find any package by regex 'rabbitmq-server-3.6.6'
Is there a way to specify the package I want to be installed?
you can find the versions on github/Package Cloud/bitnary
ex:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_6/rabbitmq-server_3.6.6-1_all.deb
sudo dpkg -i rabbitmq-server_3.6.6-1_all.deb

Unable to install boost ubuntu 13.10

I'm trying to install boost onto my 32 bit Ubuntu 13.10 system. However, when I run:
sudo apt-get install libboost-all-dev
I get:
The following packages have unmet dependencies.
libboost-all-dev : Depends: libboost-graph-parallel-dev but it is not going to be installed
Depends: libboost-mpi-dev but it is not going to be installed
Depends: libboost-mpi-python-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
To try to get around this, I've done:
sudo apt-get remove --purge libboost-all-dev
But it always comes back with
Package 'libboost-all-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
binutils-dev cmake cmake-data comerr-dev expect grive krb5-multidev
libboost-filesystem-dev libboost-program-options-dev libboost-test-dev
libcurl4-openssl-dev libexpat1-dev libgcrypt11-dev libgnutls-dev
libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev libjson-c-dev
libjson0-dev libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev
libldap2-dev libp11-kit-dev librtmp-dev libssl-dev libssl-doc libtasn1-3-dev
libyajl-dev
With nothing changed.
Any ideas?
At first remove the broken packages with,
$>sudo apt-get install -f
$>sudo dpkg --configure -a
$>sudo apt-get --fix-broken install
$>sudo apt-get --fix-missing install
$>sudo apt-get clean
$>sudo apt-get autoclean
$>sudo apt-get autoremove
Then upgrade/update the package base,
$>sudo apt-get update
$>sudo apt-get upgrade
Then,
$>sudo apt-get install libboost-all-dev
If the error persists still, then
$> sudo apt-get install <here goes the dependent pkg, in your case here, 'libboost-graph-parallel-dev' etc.>
This should work probably fine. If still you get an error of broken packages, you have to check for the
/var/lib/dpkg/status
file & check for the package which is broken, then remove it.
For more details, check out here.
None of that really worked.
What did work was installing symantec package manager and manually going through and removing the corrupted packages.
Once all the broken packages were removed, installation worked as expected.
Thanks for your help though.
I had the same problem and I found the answer for my case.
Just run followings
$ sudo apt-get remove libboost1.55-all-dev
$ sudo apt-get autoremove