Facebook Twitter gPlus rss LinkedIn
  • Board index
  • FAQ
  • Register
  • Login
  • BACK TO HUBLIST
FORUM.DCHUBLIST.ORG
Direct Connect hublist support board. http://dchublist.org

Re: How to compile ADCH++ Ubuntu 20.04 +22.04LTS

Moderator: Demona

Post a reply
2 posts • Page 1 of 1
  • Reply with quote

Re: How to compile ADCH++ Ubuntu 20.04 +22.04LTS

by Admin » Thu Sep 16, 2021 10:40 am

Per request.
Here are steps to fairly quickly compile ADCH++ x64 bit (Written strictly for Ubuntu Linux 20.04.1 LTS but as we know Linuxes are similar).

Get the latest source. Current ver. is 3.0.1 and supports TLS 1.3
https://sourceforge.net/p/adchpp/code/ci/default/tree/
Once there click on Download Snapshot link (it will take some time).
Save the source some place you remember.



1. Install build tools
Code: Select all
sudo apt-get install build-essential

2. Install Python with devel and distutils.
Code: Select all
sudo apt-get install -y python3 python3-dev

3. Install scons
Code: Select all
sudo apt-get install scons

4. Install swig
Code: Select all
sudo apt-get install swig

5. Install Ruby and ruby dev
Code: Select all
sudo apt-get install ruby ruby-dev

6. Install openssl and libssh-dev
sudo apt-get install openssl libssh-dev


7. Install mercurial
sudo apt-get install mercurial

8. Install libstdc++-devel -
Code: Select all
sudo apt-get install libstdc++6

9. Install readline-devel -
Code: Select all
sudo apt-get install -y libreadline-dev


......
Building:
Unzip source then go to unzipped folder in shell type:
scons mode=release arch=x64
.......
Setup:

1.Create folder /home/$user/adchpp ($user is your linux username).

2.Move contents of build/bin here

3. Create folder /etc/adchpp if it doesn't exist chmod 7777

4.Move config folder here - open it and edit to what it needs to be.
Set name, descr, buffers, hosts, ssl etc
uncomment <!--Plugins Path="~/adchpp/"--> to <Plugins Path="~/adchpp/"/>

5. Create folder certs in /home/$user/adchpp put your ssl certs there!

6. Move Scripts and Plugins folders into /home/$user/adchpp

7. Create folder /usr/local/lib/lua/5.1/ place luadchpp.so loadall.so there

8. edit /etc/adchpp/Script.xml -edit script path absolute
/home/$user/adchpp/Scripts and add your scripts there.

Run your soft executing:
sudo ./adchppd -c /etc/adchpp/config/

Don't forget sudo ulimit -n 10000 or whatever is needed before executing above or increase limits pernamently to have them set there for good. Otherwise by default you will be limited to max 1024 online users.

This should be it. If it doesn't work it means i forgot something. Let me know if that's a case.

PS.: Flylinks will be getting disconnected sometimes with Your PID does not correspond to CID error message. Flylink devs were notified on this issue and it was fixed recently. Please update your flylinks!

.....
Update May 12 - 2022:
Latest Ubuntu 22.04 LTS comes with new version of scons(4.0.1+dfsg-2) some things got depreciated here thus we get this error:

Code: Select all
[b]scons mode=release arch=x64
scons: Reading SConscript files ...
AttributeError: 'SConsEnvironment' object has no attribute 'SourceCode':
  File "/home/txc/adchpp2/adcpp/SConstruct", line 220:
    env.SourceCode('.', None)[/b]


Removing completely line 220 in SConstruct works for now.

-
oihohb
User avatar
Admin
Site Admin
 
Posts: 246
Joined: Mon May 25, 2015 11:56 am
Location: OCALA FL USA
  • Private message
  • Website

  • Reply with quote

Re: How to compile ADCH++ Ubuntu 20.04 +22.04LTS

by Admin » Sun Nov 27, 2022 11:47 am

If You run into:
scons: Building targets ...
scons: *** [SConstruct] ValueError : unsupported pickle protocol: 4
scons: building terminated because of errors.


Delete the .sconsign.dblite (hidden file in adchpp root folder).
Run scons again. Should work this time.
User avatar
Admin
Site Admin
 
Posts: 246
Joined: Mon May 25, 2015 11:56 am
Location: OCALA FL USA
  • Private message
  • Website


Post a reply
2 posts • Page 1 of 1

Return to GOOD READS

  • Board index
  • The team • Delete all board cookies • All times are UTC - 5 hours
cron

Preset Styles

Select variation:

Main Menu

User Menu

  • FAQ
  • Members
  • Register
  • Login

Login

Who is online

Users browsing this forum: No registered users and 4 guests

Our Team:

ADMIN AKRUK DEREK ESENTIAL
THE CROW DELION CYBERGHOST404
 

HTTPS://DCHUBLIST.ORG
© 2020 MULTIPROTOCOL DC HUBLIST
 
admin@dchublist.org
 

View new posts

  • Happy 2023 New Year. by Admin
  • Re: Lets introduce ourselves! by tmatecc
  • Re: How to compile ADCH++ Ubuntu 20.04 +22.04LTS by Admin
  • Re: DC++ CLIENT by Jacek Sieka.[ Up To Date ] by Demona
  • Re: Regular expressions by Delion
  • *Certificate expiration date for NMDCS [FIXED] by Admin
  • Re: I'm in need of good phpbb 3.0 antispam. by Marchello
  • Version 1.9.3 [ENEY] of hublist code is in. 5.25.2022 by Admin
Reset
  • HUBLIST HOME
  • HUB LIST
  • HUB STATS
  • NEW HUBS