i have searched a lot on the internet and tried all tutorials.
But i am not able to install Directadmin with PHP7 and MsSql extention
i am using CentOs 7 + Directadmin + php7.0
Can anyone please help ?
The following tutorial will walk you through enabling extensions
https://help.directadmin.com/item.php?id=252
Custombuild]# more configure/ap2/configure.php70
#!/bin/sh
./configure \
--with-apxs2 \
--with-config-file-scan-dir=/usr/local/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
-with-mysqli=mysqlnd \
Related
Using a Dockerfile, I want to install libmhash from an alpine based image (FROM varnish:7.0-alpine)
I need those packages to make my dockerfile to work:
RUN apk update && apk add --no-cache \
python3 \
py3-docutils \
py3-sphinx \
varnish-dev \
curl \
libtool \
automake \
git \
autoconf \
musl \
libmhash \
openssl-dev
And I have this error:
#5 1.064 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz
#5 1.423 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz
#5 1.863 ERROR: unable to select packages:
#5 1.883 libmhash (no such package):
As you can see, I am M1 Pro... What I don't understand, I saw an ARM version of the package: https://pkgs.alpinelinux.org/contents?file=&path=&name=libmhash&branch=edge&repo=testing&arch=armv7
Any workaround ?
According to the first comment, indeed it's only in testing, so I got it working this way:
RUN apk update && apk add --no-cache \
python3 \
py3-docutils \
py3-sphinx \
libtool \
make \
automake \
git \
autoconf \
libmhash-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
When trying to compile my code, I get a linker error:
undefined reference to ‘xdg_popup_interface’
It seems to occur when trying to build wlr-layer-shell-v1-client-protocol.o, I think, or something like that, I’ll have to look at the output tomorrow.
AFAIK xdg_popup should be defined by wayland-protocols? My configure.ac.in has this line:
PKG_CHECK_MODULES(WAYLAND_PROTOCOLS, [wayland-protocols >= 1.13], [ac_wayland_protocols_pkgdatadir=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`])
and my src/Makefile.am has this:
xfway_CFLAGS = \
$(WAYLAND_SERVER_CFLAGS) \
$(WAYLAND_PROTOCOLS_CFLAGS) \
$(LIBWESTON_CFLAGS) \
$(LIBWESTON_DESKTOP_CFLAGS) \
$(LIBINPUT_CFLAGS) \
$(XKBCOMMON_CFLAGS) \
$(EGL_CFLAGS) \
$(EVDEV_CFLAGS) \
$(GTK_CFLAGS) \
$(LIBXFCONF_CFLAGS)
xfway_LDADD = \
$(WAYLAND_SERVER_LIBS) \
$(WAYLAND_PROTOCOLS_LIBS) \
$(LIBWESTON_LIBS) \
$(LIBWESTON_DESKTOP_LIBS) \
$(LIBINPUT_LIBS) \
$(XKBCOMMON_LIBS) \
$(EGL_LIBS) \
$(EVDEV_LIBS) \
$(PIXMAN_LIBS) \
$(GTK_LIBS) \
$(LIBXFCONF_LIBS)
The autotools output listed no cflags or libs for wayland-protocols, is this normal? Though autotools detected an installed version, so it’s definitely installed.
Here is the rest of my code:
https://github.com/adlocode/xfway
This seems to be a part that mentions xdg-popup:
https://github.com/adlocode/xfway/blob/master/protocol/wlr-layer-shell-unstable-v1.xml#L194
As far as I can see everything that is needed is there, what am I missing?
Update:
Is it that I have to generate xdg-shell header files myself using wayland-scanner?
I solved this by generating header files from the xdg-shell XML file using wayland-scanner, and compiling them into my project.
I'm writting a dockerfile to install the C version of opencv.
I have found a working solution for the python version, which looks like this.
FROM python:2.7
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Various Python and C/build deps
RUN apt-get update && apt-get install -y \
wget \
build-essential \
cmake \
git \
unzip \
pkg-config \
python-dev \
python-opencv \
libopencv-dev \
libav-tools \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libgtk2.0-dev \
python-numpy \
python-pycurl \
libatlas-base-dev \
gfortran \
webp \
python-opencv \
qt5-default \
libvtk6-dev \
zlib1g-dev
# Install Open CV - Warning, this takes absolutely forever
RUN mkdir -p ~/opencv cd ~/opencv && \
wget https://github.com/opencv/opencv/archive/3.0.0.zip && \
unzip 3.0.0.zip && \
rm 3.0.0.zip && \
mv opencv-3.0.0 OpenCV && \
cd OpenCV && \
mkdir build && \
cd build && \
cmake \
-DWITH_QT=ON \
-DWITH_OPENGL=ON \
-DFORCE_VTK=ON \
-DWITH_TBB=ON \
-DWITH_GDAL=ON \
-DWITH_XINE=ON \
-DBUILD_EXAMPLES=ON .. && \
make -j4 && \
make install && \
ldconfig
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
My problem is that I don't know to change it to install the C version. Do I really need to put the whole installation procedure as written here? I don't need the newest version. 3.x would be awesome.
Any ideas are welcome!
How can I have two files in the same .sh file of mine? I have two files:
create.sql,
update.sql.
I am trying to use something like this:
psql \
-X \
-U "User" \
-h "$Host" \
--dbname "$DB" \
-f /create.sql \
-f /update.sql \
Is it correct to write like this?
Or Do I need to use \i for entering two files? How can I do that?
Thanks
I can't setup Qt Creator for GTK+ on Ubuntu. I'm trying to compile this example but I got errors complaining about header files :
but I fixed them by adding this to the .pro file
INCLUDEPATH += /usr/include/gtk-2.0 \
/usr/include/glib-2.0 \
/usr/lib/i386-linux-gnu/glib-2.0/include/ \
/usr/include/cairo/ \
/usr/include/pango-1.0/ \
/usr/lib/i386-linux-gnu/gtk-2.0/include/ \
/usr/include/gdk-pixbuf-2.0/ \
/usr/include/atk-1.0/
but I don't know what to add for the LIBS +=
It worked by adding
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += gtk+-2.0