/usr/bin/python: can't open file 'setup.py': [Errono 2] No such file or directory when compiling YouCompleteMe - centos7

The platform is centos 7.
When compiling YouCompleteMe, after ycm_core is built successfully, it fails with:
/usr/bin/python: can't open file 'setup.py': [Errono 2] No such file or directory
Failed to build regex module.
I've searching the internet and install some essentials, such as got setuptools upgraded, and python3-devel packaged, and regex module installed, but can't fix setup.py missing issue.
Thanks advance for any help.

Related

Missing dlls when converting py file to exe

I'm trying to convert my python script and I keep getting the following error:
error: [Errno 2] No such file or directory: 'libopenblas.TXA6YQSD3GCQQC22GEQ54J2UDCXDXHWN.gfortran-win_amd64.dll'
Can someone, please help me?
Do you have NumPy installed? It appears that files comes with it.
Try: pip install intel-numpy or conda install numpy depending on which package manager you want to use.
If you already have it installed, and are still getting the error... Identify which folder it is installed in and add that folder to your path before running the exe tool.

can't include <X11/Xft/Xft.h> when compiling nana library, no such file or directory

I'm trying to install the nana C++ library in Ubuntu 16.04.
I downloaded and unzipped it into the directory with my helloworld file, and went to the directory with the makefile; nana/build/makefile, and typed make but got the error
X11/Xft/Xft.h: no such file or directory
I checked /usr/include/X11 and yeah, it's not there. Googling has not helped figure out hot to install Xft. How do I do it? Or am I doing something else wrong?
This header seems to be in libxft-dev package. Install it with your package manager. If it is apt, try:
sudo apt install libxft-dev

python protobuf install for windows

I am currently trying to install version 3 of google protocol buffer on windows for python.
I have gone to the python folder through the command line and I am attempting to use:
python setup.py build
however I am getting the following error:
python : protoc is not installed nor found in ../src. Please compile it or install the binary package.
What's going on here?
As the error says, you must first install protoc.exe. You can get it from the Win32 package included with every Protobuf release. The latest version is here:
https://github.com/google/protobuf/releases/download/v3.0.0-alpha-3/protoc-3.0.0-alpha-3-win32.zip
(You can also build protoc from source by downloading the C++ source code release.)
I was able to solve this issue, by following the steps below:
Download the package which contains the precompiled version of Protoc from https://github.com/protocolbuffers/protobuf/releases. You will find the zip file at the bottom, in the assets section (e.g.,protoc-3.14.0-win32.zip)
Add the path of your .exe file which is located inside the bin of the Protoc folder, to the system variables of your system.
Open cmd and go to the directory where you have cloned the source code for the protocol buffer (https://github.com/protocolbuffers/protobuf). Get inside the python folder
Check if python version 2.7 or newer is installed by running the command python -V. If yes then try the command, python setup.py build
python setup.py install
check the installed protoc version with protoc --version

Compile OpenCV for iOS fails

Does anyone have idea why this error occurs?
I run $ python platforms/ios/build_framework.py ios to create the framework of OpenCV for iOS. But the install failed.
Platform information: OpenCV latest commit from today, CMake 2.8.12.2, XCode 5.1.1, Mac OSX 10.9.2
I followed this tutorial: Installing Opencv For iOS
** INSTALL FAILED **
The following build commands failed:
Libtool ios/build/iPhoneSimulator-x86_64/modules/world/UninstalledProducts/libopencv_world.a normal x86_64
(1 failure)
Traceback (most recent call last):
File "platforms/ios/build_framework.py", line 112, in <module>
build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "../..")), os.path.abspath(sys.argv[1]))
File "platforms/ios/build_framework.py", line 104, in build_framework
put_framework_together(srcroot, dstroot)
File "platforms/ios/build_framework.py", line 80, in put_framework_together
shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers")
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 171, in copytree
names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2'
molbdnilo is right:) Building the latest release is always better idea than building the latest commit. Thanks.
I have downloaded the latest release of OpenCV which is 2.4.8 right now and built it again. Everything worked fine.
Just today I've faced the same problem and solved it with a simple command:
brew install cmake
This solution was described here.
As #enreas mentioned in his answer, the problem is that you don't have cmake installed. That would solve the problem.
There are many ways to do this, the easiers are via either homebrew or MacPorts:
homebrew version:
brew install cmake
MacPorts:
port install cmake

Qt installation error

i got an error when am trying to configure Qt.
Erro :
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1
// installion files.
InterBase...............no
Sources are in..............E:\xampp\Qt\4.6
Build is done in............E:\xampp\Qt\4.6
Install prefix..............E:\xampp\Qt\4.6
Headers installed to........E:\xampp\Qt\4.6\include
Libraries installed to......E:\xampp\Qt\4.6\lib
Plugins installed to........E:\xampp\Qt\4.6\plugins
Binaries installed to.......E:\xampp\Qt\4.6\bin
Docs installed to...........E:\xampp\Qt\4.6\doc
Data installed to...........E:\xampp\Qt\4.6
Translations installed to...E:\xampp\Qt\4.6\translations
Examples installed to.......E:\xampp\Qt\4.6\examples
Demos installed to..........E:\xampp\Qt\4.6\demos
Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1
E:\xampp\Qt\4.6>
If you are trying to build Qt with a Visual Studio enviroment, you have to make sure that nmake and cl are in the PATH.
The easiest way to do that is to simply use the Visual Studio Command Prompt (found e.g. in the start menu).
You need to change your path so that it leads to wherever nmake is.
Try adding the flag "-make nmake" to your configure command.