Subscribe to RSS feed

Posts tagged with "dc++"

Installing VerliHub

, ,

install the needed packages :
sudo apt-get install build-essential mysql-server libmysqlclient-dev libpcre3-dev geoip-bin libgeoip-dev g++-3.3 liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 luasocket luasocket-dev

get the latest version, from HERE (latest version when i was writing this was Verlihub 0.9.8-d_RC2) download the "Source archive" and extract it, then go to verlihub subfolder and run :

CXX=g++-3.3 ./configure

If you get this message :
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Configure has completed successfully. Now you must run make.
If make fails with errors, please consult the forums and see
if anyone else has had the same issue. The forums are located
here http://www.verlihubforums.com
Extensive documentation is also available at the project website
which can be found here http://www.verlihub-project.org
Please feel free to join and register at the Verlihub suport
hub located here dchub://hub.verlihub-project.org:7777
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
then you can compile it.
Run
make
, note that this will take some time, so go grab a coffee or something bigsmile. If you get this message
make[2]: Entering directory `/home/cyberwolf/!KITS/verlihub-0.9.8-d-RC2/share'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/!KITS/verlihub-0.9.8-d-RC2/share'
make[2]: Entering directory `/home/!KITS/verlihub-0.9.8-d-RC2'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/!KITS/verlihub-0.9.8-d-RC2'
make[1]: Leaving directory `/home/!KITS/verlihub-0.9.8-d-RC2'
then you can install it with
sudo make install

Then download the plugins you need and do the same for each one of them.

after you've finished, run
sudo vh_install
and answer to the questions.

after that, run vh_runhub to start it up.

now in DC++ you can do the following :

!pluglist all
will list all loaded plugins
!lstplug
will list available plugins
!plugin /usr/local/lib/liblua_pi.so
to load the LUA plugin
then
!onplug lua
to start it. if it fails, you could try with
!replug lua


now add some lua scripts to the /etc/verlihub/scripts folder and run
!lualist
to see which scripts does the LUA plugin load
to load a script, just run
!luaload /etc/verlihub/scripts/verlimenu.lua
to load it (in our example it's the verlimenu.lua script)

Repair a bad compile/install
first of all, we must get rid of all the old verlihub data
we need to get rid of the libs and header files from Verlihub. for that, you should do this :
sudo make uninstall
for verlihub and each one of the plugins

For safety, i reinstall the GCC libraries too, for that do this :
sudo apt-get remove build-essential mysql-server libmysqlclient10-dev libpcre3-dev geoip-bin libgeoip-dev g++-3.3 liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 luasocket luasocket-dev --purge
after that
sudo apt-get autoremove --purge

then do the steps for installing it all (just like i said at the begining of the post).