File contains no section headers on Centos - centos

When I tried to install CMake but writing the following
sudo yum install cmake
I got the following error
File contains no section headers.
file: file:///etc/yum.repos.d/mcepl-vim8-epel-7.repo, line: 2
'<!doctype html>\n
Please help me to fix this error

I solved this issue by deleting file:///etc/yum.repos.d/mcepl-vim8-epel-7.repo

Related

VS code giving error when installing extension

Hi guys im encountering an error when I try to install extension for VS Code in elementary. It gives an error as Failed to install 'felixfbecker.php-intellisense' when i try to install by downloading manually it says ENOENT: no such file or directory, mkdir
Inside the developer console it shows the same error for 1st method also. I have installed VS Code using the deb file with sudo.
It was a permission issue solved it using
this

Yum Install Issue in Centos while installing Couchbase

I was trying to run the below command to install packages in Centos.
[cloudera#quickstart ~]$ sudo yum install -y pkgconfig
After running the above command getting the below error.
Loaded plugins: fastestmirror, security
Setting up Install Process
Error: File contains no section headers.
file: file:///etc/yum.repos.d/docker-ee.repo, line: 1
'<!doctype html>\n'
This is not related to Couchbase at all. Looks like your /etc/yum.repos.d/docker-ee.repo is not really plain text, and has HTML content instead. Try to remove this file and retry.

Sipp with pcap installation on windows

I am trying to install sipp with pcap-replay on winows7.
I have installed cygwnin, libncurse, and winpcap. I was trying to patch cygwin with IPv6 using the URL http://cygwin.win6.jp/cygwin-ipv6/, but it couldn't get the setup.ini file.
So I copied to local directory and upgrade, but it said no new updates.
And if I try to complie sipp. it gives error
$ ./configure.ac --with-pcap
./configure.ac: line 3: syntax error near unexpected token [SIPp],'
./configure.ac: line 3:AC_INIT([SIPp], [3.3], [sipp-users#lists.sourceforge.net], [sipp])'
Could anyone help me in getting sipp be installed on windows?
I download sipp.3.3.990 it has ./configure and was able to install on Linux.
But now on windows it still fails saying ncurse is not present. But I have downloaded it.
How do I troubleshoot it from here?
You can follow below steps to generate configure from configure.ac.
$> autoreconf -i
Now, you will see a configure file created at the same location.
To run the above command, following packages are required: automake,ncurses-devel,libncurses,M4 and autoconf.
if any of the above packages are missing run the cygwin setup file again and select the packages on the package selection screen and click install.

RMySQL error 'configure' exists but is not executable

I am installing RMySQL on centos.
There were many dependencies, and I was able to install all.
But still getting one error, when I am trying to install.
The command I am executing is below:
R CMD INSTALL RMySQL_0.9-3.tar
And I am getting following errors:
* installing to library /usr/lib64/R/library
* installing *source* package RMySQL ...
ERROR: 'configure' exists but is not executable -- see the 'R Installation and
* removing /usr/lib64/R/library/RMySQL
Has anybody faced this kind of problem with Rphp or RMySQL ?
Thanks in Advance for reply
It was permission issue.
And it was solved by the commands
# chmod 777 /root/tmp/
# TMPDIR=$HOME/tmp
# export TMPDIR
I am posting my answer here, hope it will help someone else also.

pcap.h header file problem

anyone know how to fix the problem regarding header file in ubuntu 10.10.
I am executing a sniffing program which makes use of this header file. My system shows libcap package is installed. Still, on compiling the code, an error is coming which reads:
fatal error: pcap.h: No such file or directory
compilation terminated.
Please help me out.
Thanks all:)
The system won't let me correct Eric Fossum's comment, because I lack reputation. There is a typo ("libcap" vs. "libpcap") and his suggested command should read the following:
sudo apt-get install libpcap-dev
sudo apt-get install libpcap0.8-dev
If you are using yum, then
sudo yum install install libpcap-devel
You don't have the pcap.h file in your include path. You need to add the location of pcap.h to your include path when compiling:
-I/path/to/pcap.h
If you're using linuxbrew, you can just brew install libpcap. In my case I was trying to install nethogs and it failed with this error.
First install libpcap:
sudo apt-get install libpcap0.8-dev
then create its shortcut for header file:
ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h