php version 7.1.33 to install pthread - pthreads

I have using php version 7.1.33 but pthread install to proper steps but given a error to below:
Fatal error: Class 'Thread' not found in C:\xampp\htdocs\test.php on line 2
What is the issue please solve this?

Related

Can't get luarocks to install lua-cjson; Failed compiling module cjson.dll

I am trying to install lua-cjson using luarocks. I have installed mingw32 as well as set a environment variable in system. I keep getting error: I've tried re-directing my lua folder to user public (as another post suggested), however that didn't help, only to get the same error.
I've even verified that MinGW is installed by using the --version command in CMD prompt, which works.
Error: Build error: Failed compiling module cjson.dll
I don't know what else to do as there are absolutely no posts on stackoverflow covering this issue.
lua_objlen was removed. If you want this module to be working try
luarocks install lua-cjson "CFLAGS=-DLUA_COMPAT_5_3"
Output
Reference

brew install specific version of a package fails

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.

Problem with OpenCV C++ Ubuntu 16.04-/usr/bin/ld: cannot find -lopencv_*

I am new to Ubuntu. I installed OpenCV following http://milq.github.io/install-opencv-ubuntu-debian/. Note that opencv_contrib are not installed. I had an error initially that opencv4.pc file was not found which I corrected by creating a new opencv4.pc in usr/local/lib and making appropriate changes in ~/.bashrc file. Now the error while compiling using c++ file from :
https://cv-tricks.com/installation/opencv-4-1-ubuntu18-04/.
This is the error I got:
.
I tried to locate the missing files in other locations but I was unable to find them. Please help me solve my problem.

EEXIST 17 error while installing opencv using conda on windows

I am trying to install opencv using conda on a windows machine. I am running the following command:
conda install --channel https://conda.anaconda.org/menpo opencv
and getting the following error:
Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Anaconda2
added / updated specs:
- opencv
The following NEW packages will be INSTALLED:
opencv: 2.4.11-py27_1 menpo
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: - WARNING conda.gateways.disk:exp_backoff_fn(49):
Uncaught backoff with errno EEXIST 17
failed
ERROR conda.core.link:_execute(502): An error occurred while installing
package 'None'.
IOError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
IOError(13, 'Permission denied')
WindowsError(183, 'Cannot create a file when that file already exists')
Other people seem to have similar problems (https://github.com/conda/conda/issues/4393). One of the solutions I found was to downgrade conda. I am currently using conda 4.5.4 and when I try to downgrade using conda install conda=4.2 I get the following error:
The following packages will be DOWNGRADED:
conda: 4.5.4-py27_0 --> 4.2.16-py27_0
conda-build: 3.10.5-py27_0 --> 3.9.2-py27_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling
package 'defaults::conda-build-3.10.5-py27_0'.
WindowsError(5, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
WindowsError(5, 'Access is denied')
Regarding this issue I found the following similar posts:
conda update conda permission error
Anaconda : Update conda failed because permission error
But the solutions given do not fix my problem.
I also had a problem with installation and usage of the OpenCV library. If you have such а problem, you can try:
uninstall opencv with: conda remove --yes opencv (in case you have an installation but it does not work properly)
install OpenCV through pip: pip install opencv-python
I think this is a problem with opencv that comes from Anaconda channels. I came across this problem four months ago. Тhe problem may be resolved right now.
My guess is that you did not run this command with administrator privileges!

installing hdf5, mattorch/matio for lua/torch

I am configuring the packages for torch.I can't install these packages using luarocks.
for the matio, I followed the instruction on github, the matio is installed. But I cannot require it.
for the hdf5,see following.
Does anyone know what is the problem? I am new to Lua. Thanks very much!
$luarocks install hdf5
then I got the error information:
CMake Error at /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find HDF5: Found unsuitable version "", but required is at least
"1.8" (found HDF5_hdf5_LIBRARY-NOTFOUND)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindHDF5.cmake:398 (find_package_handle_standard_args)
CMakeLists.txt:4 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_hdf5-20-0-5408/torch-hdf5/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
Error: Build error: Failed building.
I encountered the same problem on ubuntu >= 13.04, this command solves my problem:
sudo apt-get install libhdf5-serial-dev hdf5-tools
Then you can use luarocks to install hdf5
luarocks install hdf5
For other systems, you can reference this link for dependencies.

Resources