Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Gazelle (http://www.bvlist.com/forumdisplay.php?f=40)
-   -   How To Set Up Gazelle on a Debian Server (http://www.bvlist.com/showthread.php?t=2359)

zuzubv 20th January 2010 01:26

add this 3 lines

PHP Code:

#include "assert.h"                                                                                                             
#include "string.h"                                                                                                             
#include "stdlib.h" 

in header of this files

sql_result.h
stream_int.h
bt_misc.cpp
bvalue.cpp
virtual_binary.cpp
xif_value.h

when you have make error, type make clean then make again

LE: and in tracker_input.cpp

LE2: and if you got LONG_LONG_MAX error

add to tracker_input.cpp

PHP Code:

#include <climits> 

if not works

then make clean, and add this

PHP Code:

#define LONG_LONG_MAX 9223372036854775807LL 

and then make clean and again MAKE and you got it

mrs 20th January 2010 11:52

I have done all that you said. Now i have jus one error:

PHP Code:

FILE_SOURCE -fno-strict-aliasing -fwrapv -funroll-loops -fexpensive-optimizations -O3 -MT bt_tracker_url.lo -MD -MP -MF .deps/bt_tracker_url.Tpo -c bt_tracker_url.cpp  -fPIC -DPIC -.libs/bt_tracker_url.o
bt_tracker_url
.cpp:4:38errorboost/algorithm/string.hppNo such file or directory
bt_tracker_url
.cpp:6error'boost' is not a namespace-name
bt_tracker_url
.cpp:6errorexpected namespace-name before ';' token
bt_tracker_url
.cppIn member function 'void Cbt_tracker_url::write(const std::string&)':
bt_tracker_url.cpp:45error'istarts_with' was not declared in this scope
make
[2]: *** [bt_tracker_url.loError 1
make
[2]: Leaving directory `/home/marius/mydomain/xbtt/build/xbtt/src/misc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/marius/mydomain/xbtt/build/xbtt/src/misc'
make: *** [all-recursive] Error 1 


zuzubv 20th January 2010 15:35

do you type make clean and again make ?

if yes, then include the 3 lines in bt_tracker_url.cpp too

Laffin 20th January 2010 18:36

It doesnt matter what you type or include, if you dont pay attention to the log file and errors. just spewing possible solutions will just create more problems.
Quote:

bt_tracker_url.cpp:4:38: error: boost/algorithm/string.hpp: No such file or directory


looks like you have a mis-installation of the boost library, (re)install the boost libs and headers.



mrs 20th January 2010 22:46

Quote:

zuzubv

do you type make clean and again make ?

if yes, then include the 3 lines in bt_tracker_url.cpp too
i have included the 3 lines


Quote:

Originally Posted by Laffin (Post 19795)
It doesnt matter what you type or include, if you dont pay attention to the log file and errors. just spewing possible solutions will just create more problems.


looks like you have a mis-installation of the boost library, (re)install the boost libs and headers.


[/COLOR][/COLOR]

and you are right, boost library was not installed. I have installed it and now i have no errors when i run make.

But i'm not ready yet :secret: maybe i will come with another questions :ok:

Thank you


Edited

I have executed ./xbt_tracker xbt_tracker.conf and all is ok, executed install.php, config.php file was created automatically, i have modifyed ip adress and port in my database... but when i try to login i receive a blank screen. I have turned display errors on, and i have this error:

Code:

Notice: Undefined index: HTTPS in /home/admin/mydomain/classes/config.php on line 10

Fatal error: Class 'Memcache' not found in /home/admin/mydomain/classes/class_cache.php on line 213


zuzubv 21st January 2010 00:07

you don't have memcache installed

check google

mrs 21st January 2010 00:24

Quote:

Originally Posted by zuzubv (Post 19806)
you don't have memcache installed

check google

In my php.ini it exists mod_mem_cache

Code:

Loaded Modules        core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_version mod_php5 mod_proxy_ajp mod_ssl

Laffin 21st January 2010 00:57

that looks more like apache modules than php modules

mrs 21st January 2010 01:17

Quote:

Originally Posted by Laffin (Post 19811)
that looks more like apache modules than php modules

Quote:

memcachememcache support enabled
Active persistent connections 0
Version 2.2.5
Revision $Revision: 1.111 $

Directive Local Value Master Value
memcache.allow_failover 1 1
memcache.chunk_size 8192 8192
memcache.default_port 11211 11211
memcache.default_timeout_ms 1000 1000
memcache.hash_function crc32 crc32
memcache.hash_strategy standard standard
memcache.max_failover_attempts 20 20
I have found how to install it for centos 5, here: How To Install memcached with memcache PHP Extension on CentOS 5.x


But i still have errors:

Code:

Notice: Undefined index: HTTPS in /home/admin/christianmovies.eu/classes/config.php on line 10

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/admin/christianmovies.eu/classes/config.php:10) in /home/admin/christianmovies.eu/classes/script_start.php on line 36

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/admin/christianmovies.eu/classes/config.php:10) in /home/admin/christianmovies.eu/classes/script_start.php on line 36

Notice: Undefined index: logged_user in /home/admin/christianmovies.eu/classes/script_start.php on line 42

Notice: Undefined index: keeplogged in /home/admin/christianmovies.eu/classes/script_start.php on line 57

Notice: Undefined index: clearcache in /home/admin/christianmovies.eu/classes/class_cache.php on line 397

Notice: Undefined index: querytime in /home/admin/christianmovies.eu/classes/class_mysql.php on line 160

Fatal error: Call to undefined function mb_detect_encoding() in /home/admin/christianmovies.eu/classes/script_start.php on line 768


Laffin 21st January 2010 01:56

turn off error reporting in php.ini, (yes them wonderful errors that help you find problems in scripts).

Gazelle isnt coded very well to run with error reporting on. These error reports throw off some of the functions that require no display code in order to interact with the page headers.

so you have a snowball effect as you just witnessed,

Enable the error_log, so you can still find php errors. just disable the error reporting.


All times are GMT +2. The time now is 06:01.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.