unable to install redis 2.7+ on ubuntu 12.04 - redis

I am new to redis. and I just followed cli to install redis sudo apt-get install redis.
but the install server version is 2.2.12 . If I want to update this version and I want to install redis 2.7 + then how can I do this thing, please help. I am working on ubuntu 12.04

You can install a Personal Package Archive to get the latest version. A popular one seems to be https://launchpad.net/~rwky/+archive/redis
edit: The one above is no longer maintained. Try https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server instead.
sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:chris-lea/redis-server
sudo apt-get -y update
sudo apt-get -y install redis-server
These commands installed the latest version for me at the time of writing.

Ubuntu repositories have the 2.2 version of Redis as you discovered. If you want the latest version, you will have to download the sources from github and install it manually.
See "Installing Redis" section in the readme over here - https://github.com/antirez/redis

Try either
sudo apt-get install redis-server
or
http://laymansite.com/install-redis-in-ubuntu-12-04/

Related

How to install gearman extension in php7 running on ubuntu 18.04

I am currently required to setup the new server running php7.2 and the server will have many background process for sending emails to customer. the recommendation I got was to use Gearman Job Server.
I have been searching but seems to have only post about gearman-job-server with php5 and below.
The process of installing Gearman Job Server with php7 will be covered in like 4 steps
Install and update the Gearman PPA
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:gearman-developers/ppa
sudo apt-get update
Install Gearman Job Server and some other required components and tools
sudo apt-get install gearman-job-server libgearman-dev php7.0-dev php-pear wget unzip re2c
sudo apt-get upgrade
Download, compile the gearman pecl module and add to php.ini
cd /tmp/
sudo wget https://github.com/wcgallego/pecl-gearman/archive/master.zip
unzip master.zip
cd pecl-gearman-master
sudo phpize
./configure
sudo make
sudo make install
echo "extension=gearman.so" | sudo tee /etc/php/7.0/mods-available/gearman.ini
sudo phpenmod -v ALL -s ALL gearman
Restart webserver or PHP FPM
sudo service php7.0-fpm restart
sudo service apache2 restart
If you are running a different version of PHP make sure you make the appropriate changes to the commands or directories mentioned above. ie “/etc/php/7.0/” to “/etc/php/7.1/” etc.
Thanks to techearl.com for their tutorial which can be found
Here
The answer by Ruberandinda Patience is correct and will work but since the gearman pecl module is packaged for Ubuntu there is a much simpler way to achieve the same thing:
apt install gearman-job-server php-gearman

Launching latest version of MonoDevelop on Ubuntu 14.04 LTS

I installed MonoDevelop using following commands:
sudo add-apt-repository ppa:ermshiperete/monodevelop
sudo apt-get update
sudo apt-get install monodevelop-current
because I wanted latest version.
sudo apt-get install monodevelop
results in installing 4.x version which I wasn't interested in.
Now I can launch application via terminal using:
/opt/monodevelop/bin/monodevelop-launcher.sh
but "monodevelop" command results in following information:
The program 'monodevelop' is currently not installed. You can install it by typing:
sudo apt-get install monodevelop
and creating monodevelop.desktop file doesn't result in having program icon in launcher. Any ideas what I should do to be able to run MonoDevelop using "monodevelop" command?
I installed MonoDevelop using following commands:
sudo add-apt-repository ppa:ermshiperete/monodevelop
Do you realize that when adding a repository, you're trusting this user (what he decides to package in his repository), and that the version you get is the one that he himself alone decided to package?
I recommend you to add the repository of the official developers/packagers instead. Follow the instructions here (but uninstall any old packages first).

How to run Rebol on Freya

Been trying to run rebol-view-278-4-2 on Elementary OS "Freya" (a variant of Ubuntu 14.04 LTS).
I keep getting this error:
error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory
I went ahead and tried to install the missing library but to no avail.
These are the steps I took to get R2 core and view working on Ubuntu 14.04 LTS "Trusty," so I would imagine that this would also work on Freya:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get update
sudo apt-get install libx11-6:i386
sudo apt-get install libxext6:i386
sudo apt-get install libxaw7:i386
sudo apt-get install libfreetype6:i386
sudo apt-get install xfonts-100dpi xfonts-75dpi
(I prefer to keep the package install steps separate in case one of them fails.)

phpredis extension doesn't work, unable to load 'redis.so'

I installed nginx, php, php-fpm, php-pecl-redis by yum.
All of them work but the last one.
When I run /usr/sbin/php-fpm, I got this:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/redis.so' - /usr/lib/php/modules/redis.so: undefined symbol: igbinary_unserialize in Unknown on line 0
I don't know what igbnary_unserialize means and how to fix it.
I checked the redis.so file under right path. I add extension=redis.so to php.ini
PHP version: 5.3.3
PhpRedis version: 2.2.7
I had the same issue. I'm on Ubuntu 16.04 LTS. Running sudo apt-get install php-igbinary resolved the issue for me. I have other issues, but that's what solved this one.
For people who are upgrading their php from 7.0 to 7.4 like me, and not able to get php-redis working. These are the steps I used after following the answers above.
1) remove Redis
sudo apt purge php-redis
2) Install Igbinary
sudo apt-get install php-igbinary
3) Install php-redis again
sudo apt-get install php-redis
I did the steps above because it seems only php7.0 is recognising the php-redis install but not the currently enabled php7.4
I also recommend removing other versions of PHP if you have should your problem continue unsolved.
Probably an issue with igbinary, is this installed? (try for example: cat /etc/php.d/igbinary.ini).
Here you can find and install igbinary
Related to this bug https://bugs.launchpad.net/ubuntu/+source/php-redis/+bug/1762935
You should remove php-redis from packages:
apt purge php-redis , and install it via pecl install redis
You should add "extension=redis.so" to php.ini
and remove redis from config.d in your php directory:
rm /etc/php/7.2/fpm/conf.d/#20-redis.ini
and
rm /etc/php/7.2/cli/conf.d/#20-redis.ini
restart php fpm and you will see that problem solved
On Ubuntu 20 and PHP 7.4
I did this and it worked :
sudo apt purge php-redis
sudo apt intall php-redis php7.4-redis
TEST redis server :
$ php --ri redis
or
$ redis-cli ping
$ redis-cli info stats
just resolve the same problem:
php-pecl-redis installed by yum will cause this problem.
so you need to install the php-redis manually. wget the package and phpize - configure - make ....

Amazon web services and ubuntu 10.04 ec2 instance

I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the command sudo apt-get install sun-java6-jdk or sudo apt-get install tomcat6 admin or sudo apt-get install ec2-api-tools
Package ec2-api-tools is not available, but is referred to by another package.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ec2-api-tools 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 ec2-api-tools has no installation candidate
Another option is to add their official repository to apt - this will provide you up to date AWS tools:
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y
This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual
sudo apt-get update
sudo apt-get upgrade -y
Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner
and then:
sudo apt-get update
sudo apt-get install sun-java6-jdk
ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).
I am a bit confused, if you just want to install Java and Tomcat, why are you also trying to install the ec2 tools?
In any case, I also want to mention the free BitNami Cloud Tools installer (disclaimer: I am one of the developers). It includes the JDK and all EC2-related tools. We keep it fairly up-to-date and can run as a regular user.