I'm installing W3C validator locally on Ubuntu 14.04 with Apache 2.4.7.
I do sudo apt-get install w3c-markup-validator and get this:
ln: failed to create symbolic link ‘/etc/apache2/conf.d/w3c-markup-validator.conf’: No such file or directory
Seems the script is using a different directory structure instead of linking to /etc/apache2/conf-available.
Where do I find this install script to make the change? I'm not familiar with apt-get.
Found it.
Edit /var/lib/dpkg/info/w3c-markup-validator.postinst and comment out lines 41-44.
Then:
sudo ln -s /etc/w3c/httpd.conf /etc/apache2/conf-available/w3c-markup-validator.conf
Related
Running into this issue when working with Hugo and the AWS CLI on Ubuntu 18.04.
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
This is a fresh install of Ubuntu 18.04, Hugo, and AWS CLI.
Found the answer after a bit of web searching here: https://github.com/PX4/Firmware/issues/9409
Solution
If you update your .bashrc with the below line it should fix the issue:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
In addition, you may need to install the following package:
sudo apt install gtk3-nocsd
An Alternative
Another user reported installing the following package fixed their issue:
sudo apt-get install libgtk3-nocsd0:i386
Running
$ sudo grep -r LD_PRELOAD /etc $HOME
I found lots of configuration files of the removed package gtk3-nocsd like
/etc/X11/Xsession.d/51gtk3-nocsd-detect: export LD_PRELOAD="libgtk3-nocsd.so.0${LD_PRELOAD:+:$LD_PRELOAD}"
Just remove those old configuration with:
$ sudo apt-get purge gtk3-nocsd
in file /etc/X11/Xsession.d/51gtk3-nocsd-detect
change the line # 22 to
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0"
I'm trying to install PyCaffe for Python 3.5.3 on AWS EC2 with Ubuntu 14.04 without Anaconda, following the installation instructions.
I successfully compiled it on the same machine for Python 2.7 but when compiling for version 3.5 I get the following error:
ubuntu#ip-172-31-3-227:~/caffe$ make pycaffe
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory
#include <Python.h> // NOLINT(build/include_alpha)
I saw this post and performed:
sudo apt-get install python3-dev
I found this, so I performed the equivalent command for Python 3.5:
for req in $(cat requirements.txt); do sudo pip3.5 install $req; done
All installations worked but it didn't fix the problem.
I many other posts on similar problems but not this exact problem (so if you find something please check that it's really the same situation before rushing to say I didn't look well enough).
P.S.
I also saw this post but I don't understand which directories to add to the path.
When you do a pip install package,when pip finds new version,it uninstall the current one(dateutil in your case) when the package was installed using certain permission,pip needs the same permission to uninstall/upgrade it.
A quick fix would be to change this
`for req in $(cat requirements.txt); do pip3.5 install $req; done` to
for req in $(cat requirements.txt); do sudo pip3.5 install $req; done
It seems you dont have permission to access /usr/local/lib/python3.5/ folder as user,the packages that goes in /usr/local are required by the system but only available to you and only you on the system, i assume since only only they are restricted to you and pip want to access assuming that no restriction is there,then it get permission denied ,so you might consider doing
for req in $(cat requirements.txt); do pip3.5 --user yourusername install $req; done
the alternative is to remove any restriction to execute and write on that folder
by doing chmod -R 777 /usr/local/lib/python3.5/ which is usually not recommended but the problem you need pip to be able to read,write,execute anything in that folder.
When I want to launch matlab, this error appears:
/usr/local/MATLAB/R2010b/bin/glnxa64/MATLAB: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
I already tried to install libxp6 by using this command:
sudo apt-get install libxp6
and I already searched for this
apt-cache search libxp
but there is no package with this name.
My operating system is Ubuntu 16.10.
What should I do?
UPDATE:
It seems they removed the libxp6 package from the stable list. However, you are still able to obtain the oldstable on this page:
https://packages.debian.org/search?keywords=libxp6
The installation of this package is still the same as described below!
I also just had this problem.
Try this, this worked for me:
Long answer:
Download libxp6 on this page manually: https://packages.debian.org/stable/libs/libxp6
(At the bottom of the page you will see "Download libxp6")
Make sure to checkout what architecture you have on your Linux system by using this command:
uname -a
After you find it out, click the link with your architecture on the page (for example: architecture: amd64, and below you will see some location, where you can download from it, for example:
North America:
ftp.us.debian.org/debian
This is just a link to this real download link:
ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
On your linux command line you just can run this:
wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
After the download is finished, you can install it with this command:
sudo dpkg -i libxp6_1.0.2-2_amd64.deb
libxp6 has been successfully installed!
Short answer:
Run this command on your linux command line:
Where yy is, replace your location. Where xx is, replace your
architecture.
wget ftp.yy.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_xx.deb
Example:
wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
After the download, run this command:
sudo dpkg -i libxp6_1.0.2-2_xx.deb
Example:
sudo dpkg -i libxp6_1.0.2-2_amd64.deb
libxp6 has been successfully installed!
I hope this works for you!
I am trying to install roccc 2.0. I have installed required packages. Now while installing it, it is giving me this error:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
I searched for gnu/stubs-32.h and came to know, for Linux 64-bit its in glibc-devel and for Linux 32-bit, its in libc6-dev-i386.
I am using Linux 32-bit: i386 GNU/Linux, but couldn't get the lib required to resolve this error.
Can somebody please help me out?
If your Linux distro is Redhat based (Fedora/CentOS/RHEL):
yum install glibc-devel.i686
References
Original post answer solved this problem RHEL x64
Header file gnu/stubs-32.h is under /usr/include/i386-linux-gnu/ but the install script tries to find it in /usr/include/, try this quick fix to complete the installation:
sudo ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu/stubs-32.h
After installation is finished, you can delete the link.
The package name keeps on changing, just do a
yum list glibc-devel
to find out current package for 32 bit. In my case it only listed 2 packages one for 32 bit and one for 64 bit. I just installed the 32 bit using
yum install glibc-devel.i686
Install 'glibc-devel' package, or whatever it called in your distro. You may also need to install ia32-libs lib32z1-dev lib32bz2-dev (names could be different in your distro).
The script is trying to get stubs-32.h from /usr/include/ where it is not found. To solve this you have to add an "include" path (by default it is /usr/include) like this:
C_INCLUDE_PATH=/usr/include/i386-linux-gnu/
export C_INCLUDE_PATH
OR
export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
You can visit Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code for additional reference.
If on a Red Hat distro such as Fedora/CentOS/RHEL you can do the following to find out what package provides a given file:
$ repoquery -qf */stubs-32.h
glibc-devel-0:2.17-260.el7.i686
And then install it:
$ sudo yum install -y glibc-devel-0:2.17-260.el7.i686
I'm having a torrid time installing Apache2::Request on Centos 5.5. My apache is the standard one that came with centos.
I'm installing from libapreq2-2.13 and a lot of dependencies didn't already exist. I so far had to do:
yum install httpd-devel # for apxs
I then did:
perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
make
The make step then told me i needed: ExtUtils-XSBuilder and Parse-RecDescent, which i duly installed.
running make again gave the compiler error:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34: error: modperl_perl_unembed.h: No such file or directory
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33: error: modperl_common_util.h: No such file or directory
In file included from Apache2.xs:45:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22: error: mod_perl.h: No such file or directory
Can anyone tell me which package i'm missing?
Is there not a method of installing this common package that "just works" (tm).
Many thanks
It's already packaged for Centos.
$ repoquery -i --whatprovides 'perl(Apache2::Request)'
perl-libapreq2-0:2.09-0.rc2.1.el5.x86_64
$ sudo yum install perl-libapreq2
(Actually, that only works if you're using the EPEL repository)
To install the headers , yum install mod_perl-devel