zephir_parser extension not loaded - compilation

I'm running on ubuntu 14.04 and I installed php5.6. I'm trying to do the Hello world with Zephir but when I compile my project with :
zephir build
I got this error :
zephir_parser extension not loaded, compiling it
Parser statistics: 127 terminals, 99 nonterminals, 459 rules
947 states, 0 parser table entries, 0 conflicts
Parser statistics: 127 terminals, 99 nonterminals, 459 rules
947 states, 0 parser table entries, 0 conflicts
make: *** No rule to make target `clean'. Stop.
Preparing for parser compilation...
sh: 1: phpize: not found
sh: 1: ./configure: not found
Compiling the parser...
make: *** No targets specified and no makefile found. Stop.
PHP Warning: copy(modules/zephir_parser.so): failed to open stream: No such file or directory in /root/zephir/Library/Compiler.php on line 282
Zephir\Exception: The zephir parser extension could not be found or compiled!
Any idea ?
Edit
I reinstalled these packages :
php5-json php5-dev libpcre3-dev
I tried this command line :
./bin/zephir compile
And while compiling I have another error :
Copying new kernel files...
PHP Fatal error: Call to undefined function Zephir\utf8_decode() in /root/zephir/Library/Compiler.php on line 2202

I solved my problem by reinstalling php with libpcre3-dev and install this :
apt-get install php5.6-xml
to solve the fatal error on the utf8_decode()

Related

Issue in compiling embeding in Omnetpp 5.6.2 in windows7

I'm trying to install omnet++ 5.6.2 but after writing "make" in the command line below error was showing me.
please help me how can solve this problem
Create executable: out/clang-release//embedding.exe
ln: failed to create symbolic link './embbedding.exe': no such file or directly
make[2]: *** [Makefile:87: embedding.exe] Error 1
make[1]: *** [Makefile:134: embedding] Error 2
make: *** [Makefile:28: allmodes] Error 2
Try to turn off a real-time antivirus protection during compilation.

Unable to Install Erlang using asdf on OSX 10.15.4

I am running into an issue that I haven't previously had with over 6+ months of using asdf on osx. I need to install Erlang 21.3.7.1 and when I do I get this error output from the console that I honestly don't know how to solve:
Me#My-MacBook-Pro:~/Code/codebase|master
⇒ asdf install erlang 21.3.7.1
Downloading kerl...
Downloading OTP-21.3.7.1.tar.gz to /Users/Me/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 523 0 --:--:-- --:--:-- --:--:-- 523
100 51.5M 0 51.5M 0 0 8541k 0 --:--:-- 0:00:06 --:--:-- 9657k
Extracting source code
Building Erlang/OTP 21.3.7.1 (asdf_21.3.7.1), please wait...
DOCUMENTATION INFORMATION (See: /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_build_21.3.7.1.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
GEN obj/x86_64-apple-darwin19.4.0/opt/MADE
LD /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator_profile_generate] Error 2
Nothing I found on the Erlang/Elixir/asdf forums was particularly helpful. asdf was installed with homebrew. I can install the ref:maint build and change my .tool-version to match but that sets off a whole slew of other issues with Crypto and openssl not being found even though they're installed. Anyone have an idea or two?
It's not possible to build Erlang 21 on Catalina (10.15), according to the comments in this bug report. You can use release 22.3.1 or later.
If you need to use an older Erlang version, you could try applying this change on the Erlang 21 source code.
After upgrading to Catalina I tried installing 22.3.1 but that was not enough for me; somehow Erlang on Catalina could not find OpenSSL.
What I had to do was:
1) Uninstall Erlang 22.3.1 if you have it already:
asdf uninstall erlang 22.3.1
2) Update Xcode to latest version & accept agreement
sudo xcodebuild -license
3) Set --with-ssl flag (copied from the asdf-erlang readme)
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
4) Reinstall Erlang
asdf install erlang 22.3.1

nvcc fatal : Unknown option 'pthread'

I am trying to install Elemental. I cloned it from the GitHub directory. Made a build directory and ran cmake command in it. But when I do a make, it shows the following error message:
[ 73%] Linking CUDA device code
CMakeFiles/EntrywiseMap.dir/cmake_device_link.o
nvcc fatal : Unknown option 'pthread'
tests/CMakeFiles/EntrywiseMap.dir/build.make:99: recipe for target
'tests/CMakeFiles/EntrywiseMap.dir/cmake_device_link.o' failed
make[2]: *** [tests/CMakeFiles/EntrywiseMap.dir/cmake_device_link.o]
Error 1
CMakeFiles/Makefile2:1506: recipe for target
'tests/CMakeFiles/EntrywiseMap.dir/all' failed
make[1]: *** [tests/CMakeFiles/EntrywiseMap.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
I am using ubuntu 18, with cuda 10 and cmake version 3.13.4
What's the version of Cmake? This issue seems to be on CMake 3.12 and fixed on CMake 3.13
For me moving to the newer version of CMake 3.14.0 helped get past the issue.

miktex installation error: make: *** No targets specified and no makefile found. Stop

I am trying to install miktex on Ubuntu 14.04. I am following the instructions at http://miktex.org/howto/build-unx. But when I type the command make, the following error is shown:
make: *** No targets specified and no makefile found. Stop.
I tried the command ./configure, but it resulted in the following error:
bash: ./configure: No such file or directory
Anyone knows how to solve it??

installed thrift however when tried to run thrift command it says Thrift: command not found

I have installed thrift in mac.
From the terminal it looks like thrift is installed successfully however when i tried to run thrift command i got the following
Thrift: command not found
I used the whereis command from the terminal to find the location of thrift but couldn't find it.
Any suggestions?
Terminal output after installing thrift
thrift 0.9.0
Building C++ Library ......... : yes
Building C (GLib) Library .... : no
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : yes
Building Ruby Library ........ : yes
Building Haskell Library ..... : no
Building Perl Library ........ : yes
Building PHP Library ......... : yes
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
I think you didn't actually install thrift.
You have to do followings after ./configure
$ make
$ sudo make install
Got the same problem and tried to execute
$ make
$ sudo make install
commands but got error
./src/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'
using ::std::bind;
~~~~~~~^
src/thrift/concurrency/ThreadManager.cpp:569:8: warning: private field 'firstTime_' is not used [-Wunused-private-field]
bool firstTime_;
^
1 warning and 1 error generated.
make[4]: *** [ThreadManager.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
after that found issue https://issues.apache.org/jira/browse/THRIFT-2229
and tried to install thrift from sources by instruction http://thrift.apache.org/docs/BuildingFromSource/, now all is good.
Maybe these steps will help you.
I encountered the same problem with you.
But I fixed it by using HomeBrew to install it.
You can try with these links:
http://blog.evernote.com/tech/2012/12/20/building-apache-thrift-on-mac-os-x/
http://brew.sh

Resources