Configure ejabberd - configuration

I was running this command sudo apt-get install ejabberd
But it throws me this error:
The following packages have unmet dependencies: ejabberd : Depends:
erlang-abi-15.b E: Unable to correct problems, you have held broken
packages.
Anyone knows how to fix this?
I'm very new to ejabberd, so any help would be greatly appreciated
Thanks in advance!

Your package is probably very old and rely on a old version of Erlang.
You should download package or installer from ProcessOne website. It comes packaged with Erlang and everything is up to date.
Downloads are available on this page: https://www.process-one.net/en/ejabberd/downloads/

It is really simple to compile ejabberd + erlang. I suggest to use source code compilation instead of OS shaped packages.
First, download desired ejabberd version and check README file to get actual version of erlang.
Then download and compile erlang to needed destination.
After that you are ready to install ejabberd itself.

Related

How to install Google Apis Drive v3 via command line on Ubuntu-18.04

I have been trying to install Install-Package Google.Apis.Drive.v3 using this source with the difference that I have Ubuntu-18.04 instead of Windows.
I know it may be a simple question but I have been trying research how to do that from this morning. I installed sudo apt install nuget on my machine and have been trying to add packages or as in this case the Google.Apis.Drive.v3 package but no luck.
I went through this source which was useful, but does not carry information I was able to replicate on my Linux machine.
Also this source, this one and this one too. But also this last one is for Windows and was not very useful.
How do I install Google Apis Drive V3 via command line easily as it is documented for windows but on Ubunbtu-18.04?
Thanks for pointing to the right direction for solving this problem.
Solution
The way you install your Drive API's library is depending on the programming language you are aiming to use. These are the following commands to run depending on the different languages to interact with the API (with their respective links to the source of the setup):
Python:
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
C#/.NET:
Create a new Visual C# Console Application project in Visual Studio.
Open the NuGet Package Manager Console, select the package source nuget.org, and run the following command:
">Install-Package Google.Apis.Drive.v3
Java:
gradle init --type basic
mkdir -p src/main/java src/main/resources
Node.js:
npm install googleapis#39 --save
For the Browser check out the steps to follow here
I hope this has helped you. Let me know if you need anything else or if you did not understood something.
NOTE: For all Ubuntu-18.04 users that wish to install via command line the correct way is: sudo dotnet add package Google.Apis.Drive.v3

Compiling MySQL 5.7.20 in CentOS 7 Issues (A Lot)

I am trying to setup a MySQL server using CentOS (No GUI) and I need to switch to OpenSSL instead of YaSSL in order to have access to the encryption tools.
The issues happen when runing the cmake. At first I got the error that cmake was not able to find boost, I fixed this adding the parameter -DWITH_BOOST.
The cmake line is as follows.
cmake . -DWITH_READLINE=ON -DWITH_SSL=system -DWITH_BOOST=/usr/local/src/mysql-5.7.20/boost/
After the adjustment I ran again the CMAKE the I got several errors.
SSL Error, cmake can not find the OpenSSL files. I checked if the library was installed, I also downloaded the tar.gz file and decompress it and pointed the cmake to the folder, none of this worked.
Can not find NUMA libraries, again I checked and it is installed, at this point I ran the system update to check for everything but this did not solve the issue.
Can not find the ncurses, the same thing, is on the system but for some reason cmake is not able to find those.
Can not fin libaio, I didn't have this one installed, I installed, ran cmake again, and again cmake was not able to find it.
I been looking around, trying to figure out all this issues, I've been joining information from different websites but still not able to figure out this.
Thanks ahead to everyone for the help.
You're facing the dependencies hell with MySQL. If you don't really need to compile from the sources, you still can install with the RPM which is much easier. The RPM method is described here : https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
As you're asking a ready-to-go install from the sources, this is what I just did and it worked, on a fresh CentOS 7.4 minimal, 2 vcpus 3Gb :
yum group install -y 'Development Tools'
yum install -y cmake ncurses-devel curl
curl -Ovk https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.20.tar.gz
tar zxf mysql-5.7.20.tar.gz
cd mysql-5.7.20
cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=$HOME/boost -DENABLE_DOWNLOADS=1
make -j2
make install
After that you need to configure it, add the startup scripts, and of course secure it. Here are some additional docs :
http://howtolamp.com/lamp/mysql/5.6/installing/
https://dev.mysql.com/doc/refman/5.7/en/mysql-secure-installation.html
Perhaps try make clean; cmake clean; ldconfig then run your cmake command. Sometimes the system can't find the shared libraries, and ldconfig refreshes the library search path. This helped once when I was compiling something (emscripten?) which required a lot of libraries which I was installing as compilation errors arose.
The make clean; cmake clean will ensure that the compiler isn't looking at the old library search path when you recompile.

Error while installing Octave

I am trying to install Octave on OS X. When executing brew install octave I get the following error:
octave: A LaTeX distribution is required to install.
You can install MacTeX distribution from:
http://www.tug.org/mactex/
Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding.
I downloaded and installed MacTeX but it is still not working :(
How can I fix this?
If you want to avoid the MacTeX dependency you can install Octave with brew as follows:
brew install octave --without-docs
"Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding."
This message may be the hint of the answer for you.
You need to set the PATH so that the Tex could be called from anywhere in your system.
Adding the following line in the .bash_profile may fix it.
export PATH=$PATH:/usr/texbin/
The reason why the texlive command does not work have also same cause on this.

Installing sphinx on Dreamhost

I'm following this tutorial: http://hughevans.net/2009/03/10/thinking-sphinx-dreamhost
I'm run into an issue when I run:
./configure --prefix=$HOME/local/ --exec-prefix=$HOME/local/
I get an error: "cannot find MySQL include files."
I've checked and cant find mysql_config, so I'm guessing the mysql-devel package isn't installed.
My next step is to install the mysql-devel package from source, but I'm thinking that I may be missing something.
Has anyone found a solution for this issue?
(I'm using a VPS)
My next step is to install the mysql-devel package from source
Why from source?
Suggest just using a package manager to install the package.
I solved my problem by using a different user with root access.
With that user I installed sphinx with APT.
sudo apt-get install sphinxsearch

CPAN error. How can I fix this?

This is driving me crazy- if you can be of assistance, I'd be much obliged. I am running Cygwin on Windows 7.
I have been attempting to write a Perl script to obtain and work with some JSON information. However, my cpan will not install some packages properly. If I try to execute
install CPAN
or
install JSON
It seems to be going well for a while, but then I get an error message over and over again:
0 [main] perl 3288 child_copy: loaded dll data write copy failed, 0x740D1000..0x740D27F0, done 0, windows pid 6600, Win32 error 487
Some people suggested executing ash from the DOS command prompt, and using rebaseall. I tried this, and dash, to no avail. The install still hangs, and when I start up cpan it displays
There seems to be running another CPAN process (pid 3764). Contacting...
Other job not responding. Shall I overwrite the lockfile '/home/me/.cpan/.lock'? (Y/n) [y] y
I have gcc and as many other possible dependencies installed as many online have suggested in my search for help. If you have any leads, I'd be most obliged. Thank you.
i had issues installing pretty much any cpan module - same 'cant move' error!!
just disabled McAfee and all resolved.
Check and disable your AV.
Re-run the cygwin installer to add the needed packages.