我是thrift的新手,试图在我的mac中安装它。所以我下载了新版本0.9.3,运行 if (NetworkUtil.isConnected(getApplicationContext())) {
// if mobile number and password are Emoty
if (s_szMobileNumber!= null && s_szMobileNumber.length()>7 && s_szMobileNumber.length()<15) {// check if mobile and password is empty ..
if (s_szPassword.length()>=4&&s_szPassword.length()<=8) {
m_LoginBtn.setEnabled(true);// make Login button disabled
m_LoginBtn.setBackgroundColor(Color.rgb(0, 80, 147));// set background color on eabled
m_LoginBtn.setOnClickListener(new View.OnClickListener() {// onclick listener on Login Button
@Override
public void onClick(View v) {
postLoginDataToServer();
}
});
}
else {
if(!fromBroadcast){
m_InputPassword.setError("Password must be between 4 to 8 characters long");
}
m_LoginBtn.setEnabled(false);// make login button enabled
m_LoginBtn.setBackgroundColor(Color.rgb(192, 192, 192));// color of login button
}
} else {
if(!fromBroadcast){
m_InputMobile.setError("Mobile number must be between 7 to 15 characters long");
}
m_LoginBtn.setEnabled(false);// make login button enabled
m_LoginBtn.setBackgroundColor(Color.rgb(192, 192, 192));// color of login button
}
} else {
try {
CSnackBar.getInstance().showSnackBarError(findViewById(R.id.mainLayout), "No Internet Connection Available", getApplicationContext());
} catch (Exception e) {
e.printStackTrace();
}
m_LoginBtn.setEnabled(false);
m_LoginBtn.setBackgroundColor(Color.rgb(192, 192, 192));
}
。但输出结果如下:
./configure
但实际上它已经成功检查了python env,如下所示:
thrift 0.9.3
Building C++ Library ......... : yes
Building C (GLib) Library .... : no
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : no
Building Ruby Library ........ : no
Building Haxe Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : yes
Building PHP Library ......... : yes
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
Building NodeJS Library ...... : no
Building Lua Library ......... : no
我还需要做什么?
答案 0 :(得分:0)
__MigrationHistory
必须在路径中。按python
然后检查which python
,它应该是:
PYTHONPATH
答案 1 :(得分:0)
不知道它是否可以提供帮助(旧帖子),但在0.9.3中,配置脚本检查以进行试用&amp; python存在以决定是否必须构建python库=&gt;检查试用版是否可用,或者安装python-twisted以获得你想要的东西。