Install postfix in CentOS 7 without maria-db - postfix-mta

I am trying to install postfix using yum in CentOS 7. I'm using a version of mysql (5.5.28) which is installed directly from a rpm file.
The default postfix has a dependency on mariadb. Since mariadb conflicts with mysql I'm unable to use this. I tried using the centosplus repository which has mysql support. After installing compat-mysql rpm, I am able to install postfix using following command:
yum install --exclude=mariadb-libs --exclude=mysql-community-libs
postfix
But after this when I try to start postfix I get the following error:
/usr/sbin/postconf: relocation error: /usr/sbin/postconf: symbol
mysql_real_connect, version libmysqlclient_18 not defined in file
libmysqlclient.so.18 with link time reference
I am kind of stuck at here. Can any one please help?
Thanks in advance.

You need all required packages. Install all deendency packages.
Note that Installing Mariadb does mot mean you need it running. It will take only space on disk.

Related

Updating R to 3.5+ on Ubuntu 18.04

I'm looking to update R on our ubuntu 18.04 server to 3.5 or higher but I'm experiencing some difficulties.
Installing it via install r-base results in version 3.4.x, we need 3.5 or higher to run some specific scripts. I've also consulted this website: https://cran.ma.imperial.ac.uk/, and attempted add the repository listed (sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+) but this results in the following errors:
Cannot add PPA: 'ppa:~c2d4u.team/ubuntu/c2d4u4.0+'.
ERROR: '~c2d4u.team' user or team does not exist.
At this point, I'm at a loss. I'm wondering if it's potentially a firewall issue? or is there a setting I need to change.
What about downloading .deb(s) from https://cloud.r-project.org/bin/linux/ubuntu/bionic-cran40/ and installing them with dpkg / apt?

Unable to locate package libvirt-clients error on ubuntu

I am seeing the below error when deploying devstack (openstack) on ubuntu:
E: Unable to locate package libvirt-clients
E: Unable to locate package libvirt-daemon-system
Any clues pls ?
I have this problem too and i use ubuntu trusty
according to this commit:
https://github.com/openstack-dev/devstack/commit/03fbc0d71bf4ee85820999ef1324dc319ef9d926?diff=split
they changed the repo packages 5 days ago and just for ubuntu xenial its the same as before : "install_package libvirt-bin libvirt-dev"
but other distros: "install_package libvirt-clients libvirt-daemon-system libvirt-dev"
I think we could better edit the file manually until better changes take place.
You're probably trying to install Devstack it on an unsupported version of Linux. Try Ubuntu 16.0.4 (worked for my today without a single problem) or the one that the installation guide says is supported.
Try sudo apt install qemu qemu-kvm virt-manager for more information check this out on github.

Failed to install R on Centos 7

I have CentOS 7 (3.10.0-123.el7.x86_64) and I seem not be able to install R and then get Rstudio server working.
This is what I did:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install R
Then I got this error:
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
I am not sure what it is. There is nothing from whereis R because it didn't install.
If I install Rstudio Server, it would fail to start the service and said ERROR unable to find installation of R in the system
Can someone tell me how to install R properly on Centos 7?
That is not related to R. Your log shows a conflict between "device-mapper" and "lvm2", and these packages are used to operate with devices such as hard disks and partitions (before someone downvotes me, YES this is a crude simplification).
You should try to update your system with yum before installing R.
I resolved this problem by updating lvm2 firstly, then install R.
This idea was from: https://bugzilla.redhat.com/show_bug.cgi?id=1294128

Install RPostgreSQL on RHEL 6.5 libpq-fe.h Error

I have RHEL 6.5 Server with an installation of R (3.1.1) & RStudioServer (0.98.1062)
I have postgresql-9.3 installed and handling a large database. In order to connect R to PostgreSQL, I have in the past used the RPostgreSQL (still do on my CentOS 7 Workstation). However, attempting to compile under RHEL 6.5 I get an error
In file included from RS-PQescape.c:7:
RS-PostgreSQL.h:23:26: error: libpq-fe.h: No such file or directory
The file is located on my system here:
/usr/pgsql-9.3/include/libpq-fe.h
Libpq is part of the Postgres installation, but RPostgreSQL cannot find it:
[root#server /]# yum list libpq*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Installed Packages
libpqxx.x86_64 1:4.0.1-1.rhel6 #pgdg93
libpqxx-debuginfo.x86_64 1:4.0.1-1.rhel6 #pgdg93
libpqxx-devel.x86_64 1:4.0.1-1.rhel6 #pgdg93
Is there any way to tell RPostgreSQL where to look (symbolic links?) or some other workaround? This should be simple, but I've wasted several hours on this already...
Followup info because I just had the same problem.
Installing yum install postgresql-devel resolves the error too.
I ended up looking into the RPostgreSQL configure file in the tarball, searched for the file name the script couldn't find and decided it was easiest to create an environmental variable:
export PG_INCDIR=/usr/pgsql-9.3/include/
Worked like a charm after that.
If you have sudo rights, you could also try:
yum install postgresql-devel

How to specify include and lib directories when locally installing RODBC?

i am trying to install RODBC with the commadn R CMD INSTALL -l /my/local/path RODBC.tar.gz and it wont find sql.h and sqlext.h ..how do i pass the include and lib paths to this command?
I had a similar problem recently while trying to install RODBC on an instance of Centos 5.8 x64. (Instead of using R CMD install, I just did sudo R, then installed the package inside R - but I was still having the same problem).
I resolved this by installing the following packages using yum:
unixODBC
unixODBC-libs
unixODBC-devel
mysql-connector-odbc
freetds
freetds-devel
Those last two are necessary because I was interfacing with an MSSQL server, which requires TDS. Anyway, once I installed unixODBC and the libs and development package, I was able to install RODBC with no difficulty (again, using sudo R and then install.packages("RODBC").
The only other thing to do is install the correct drivers/libraries for ODBC, which is what mysql-connector-odbc is. You will need to configure unixODBC to meet your needs, but the documentation is pretty solid, so I don't think you'll have too much difficulty.

Resources