However, when he tried to run the thrift command, he says that the Thrift: command command was not found

I installed thrift in mac.

From the terminal, it looks like thrift was successfully installed, but when I tried to run the thrift command, I got the following

Thrift: command not found 

I used the whereis command from the terminal to find the location of the thrift, but could not find it.

Any suggestions?

Terminal exit 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 
+4
source share
3 answers

I think you really didn’t install thrift. You should do the following after. / configure


 $ make $ sudo make install 
+4
source

The same issue came out and tried to execute

  $ make $ sudo make install 

but got an 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 the problem was found https://issues.apache.org/jira/browse/THRIFT-2229

and tried to install thrift from sources according to the instructions http://thrift.apache.org/docs/BuildingFromSource/ , now everything is fine.

Perhaps these steps will help you.

0
source

I ran into the same problem with you.

But I fixed it using HomeBrew to install it.

You can try the following links:

http://blog.evernote.com/tech/2012/12/20/building-apache-thrift-on-mac-os-x/ http://brew.sh

0
source

Source: https://habr.com/ru/post/1444678/


All Articles