I am trying to install MySQL on a Raspberry Pi 3. Currently I have Apache and PHP installed. I now need to install MySQL but when I do sudo apt-get install mysql-server php-mysql -y, I receive an error telling me that there is no such package:
E: Package 'mysql-server' has no installation candidate
Complete output:
pi#raspberrypi:/var/www/html $ sudo apt-get install mysql-server php-mysql -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server 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
However the following packages replace it:
mariadb-server-10.0
E: Package 'mysql-server' has no installation candidate```
I guess using MariaDB fixes my issue.
sudo apt install mariadb-server php-mysql -y
It says it is not available in any source. Tried using the debian provided by oracle. It says libssl versions are incompatible. Any help in this regard.
Now, mysql workbench is available for ubuntu 19.04.
You can manually install after downloading the file.
Step 1:
Direct download link-
https://dev.mysql.com/downloads/file/?id=488567
OR
Visit here select your OS then download as per OS version
https://dev.mysql.com/downloads/workbench/
Step 2:
sudo apt install file_path_of_downloaded_workbench
Finish!!
I solved this problem by installing the libzip package, directly from the deb package. I found at https://ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html. Download and install libzip4, then install mysql-workbench from the apt or deb package, whichever you prefer.
on Ubuntu 19
1)I had to, preceding it on Ubuntu 19, also install manually a library libzip https://ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html
2) then manually selecting on a download page deb package for mysql workbench https://dev.mysql.com/downloads/workbench/
then install deb packages via a standard apt installer in a Downloads dir
sudo apt install ./libzip4_1.1.2-1.1_amd64.deb
and downloaded workbench deb package
sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
You can download the source code from https://dev.mysql.com/downloads/workbench/, compile it and install it. I did it that way and it works perfectly for me. I had to install several package dependencies and review some basic compiler details, but in the end the result was successful. Follow the INSTALL file instructions and consider removing the Werror option from the CMakeLists.txt. Download antlr-4.7.1-complete.jar from web, and then run:
cmake -Wno-dev -DWITH_ANTLR_JAR='path_to_antlr-4.7.1-complete.jar' -Wno-error
make
sudo make install
screenshoot 1
screenshoot 2
UBUNTU 19.04 disco dingo -> mysql-workbench install steps:
add mysql complete source list from: https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
install libs: sudo apt-get install libgtkmm-3.0 libpcre++*
add debian source list on "/etc/apt/sources.list" :
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y
sudo apt-get install mysql-utilities mysql-common mysql-community*
sudo apt-get install mysql-workbench (finish!!)
works here!
Latest version of workbench does not support Ubuntu 19.04 and version for 19.10 will not work.
You have to download specific workbench version supported by 19.04 from the archive.
Visit https://downloads.mysql.com/archives/workbench/
Select product version 8.0.17,
download and install package mysql-workbench-community_8.0.17-1ubuntu19.04_amd64.deb
check out gdebi
gdebi is a tool resolving & installing dependencies, for more info http://manpages.ubuntu.com/manpages/bionic/man1/gdebi.1.html
1) Install libzip4
curl -OL http://launchpadlibrarian.net/260671111/libzip4_1.1.2-1.1_amd64.deb
sudo dpkg -i libzip4_1.1.2-1.1_amd64.deb
2) Then install MySQL workbench on Ubuntu 19.04 by running the commands:
curl -OL https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-
community_8.0.16-1ubuntu18.04_amd64.deb
sudo dpkg -i mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
3) Install missing dependencies (libatkmm-1.6-1v5, libglibmm-2.4-1v5, libgtk2.0-0, libgtkmm-3.0-1v5, libpcrecpp0v5, libpython2.7, libsigc++-2.0-0v5, libtinfo5) by this command.
sudo apt --fix-broken install
Hope this helps.
Download the .deb file from here
Install it using command
dpkg -i *.deb。
Now MYSQL-WORKBENCH for Ubuntu-19.04(Disco) is available.
To install mysql workbench form command line you need add dependencies manually.
Edit your /etc/apt/sources.list and Append following lines:
deb http://security.ubuntu.com/ubuntu cosmic-security main
deb http://cz.archive.ubuntu.com/ubuntu cosmic main universe
sudo apt-get update
Download mysql-workbench from 'Mysql Workbench-19.04 for Ubuntu' and install by giving execute permission to mysql-workbench-community_8.0.17-1ubuntu19.04_amd64.deb file.
Now it should work. :)
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:
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You have to do some custom things in order to run mongodb 4.0 in ubuntu 18.10
sudo apt-get install libcurl3
locate libcurl3 file likely in /usr/lib/x86_64-linux-gnu/, make a LD_LIBRARY folder in home, copy the libcurl.so.4 there and rename to libcurl.so.3
mkdir ~/LD_LIBRARY
cp /usr/lib/x86_64-linux-gnu/libcurl.so.4 ~/LD_LIBRARY/
mv ~/LD_LIBRARY/libcurl.so.4 ~/LD_LIBRARY/libcurl.so.3
make a link of libcurl3 by:
cd ~/LD_LIBRARY
ln -s libcurl.so.3 libcurl.so.4
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/LD_LIBRARY/" >> ~/.bashrc
source ~/.bashrc
now start mongod it will run.
Also now you can install
sudo apt-get install libcurl4 php-curl
And use all the application require php-curl and libcurl4
Here is How I solve curl installation error:
First I install required version of libcurl4 on which curl depends:
sudo apt-get install curl
This command give error that
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3.8ppa2) but it is not going to be installed
I first install libcurl4 required version which in my case is libcurl4-7.58.0-2ubuntu3.8ppa2 note in your case it my differ:
sudo apt-get install libcurl4=7.58.0-2ubuntu3.8ppa2
After installation of libcurl4 I install curl which get installed and work fine:
sudo apt-get install curl
I'm Using CentOS 7 and trying to install IP messenger in it but not able to install it. Can anyone help me in installing any IP messenger. Any kind of help would be appreciated. Thanks.
You can also compile iptux from source:
Install dependencies
Ubuntu/Debian
sudo apt-get install git libgtk2.0-dev libgconf2-dev g++ make autoconf libtool automake
Fedora/Cent OS
sudo yum install git gtk2-devel GConf2-devel gcc-c++ make autoconf libtool automake
Clone the directory from github
git clone git://github.com/iptux-src/iptux.git
Compile it and install
cd iptux
./configure
make
sudo make install
Execute the program
iptux
iptux seems quite portable. You could compile it from sources and install it locally like for example this tutorial tells you.
Alternatively, you could manually download a packaged version of iptux in rpm format and install it using the CentOS package manager.
rpm -i iptux-0.5.1-alt1_13.i586.rpm OR rpm -i iptux-0.5.1-alt1_13.x86_64.rpm
In Centos 6.4,when configure Emacs,it shows:
configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
How to fix it,what's the problem in it.
sudo yum install ncurses-devel
then ./configure again
Try to install libncurses-dev with
bash
apt-get install libncurses-dev
I'm on a Debian Wheezy derived distribution (CrunchBang)
Trying to install Emacs 24.5.1
Had to install libncurses5-dev, then run ./configure
$ sudo apt-get install ncurses-devel
...
E: Unable to locate package ncurses-devel
$ sudo apt-get install libncurses5-dev