UnrealIRCd 基础6

2021-11-29 17:57:33 浏览数 (1)

Tip: ./Config 脚本会引导我们阅读新版的变更与注意事项,然后收集软件配置,收集配置信息的过程中,可以按需指定,也可以直接回车接受默认值,最后会引导我们创建一个SSL证书,根据具体环境进行设置就好了

然后编译

代码语言:javascript复制
[root@h104 unrealircd-4.0.2]# make 
Building src
make[1]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src'
gcc -I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic   -c timesynch.c
gcc -I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic   -c res.c
gcc -I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic   -fPIC -DPIC -shared -DDYNAMIC_LINKING 
	-o account.so account.c
gcc -I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic   -fPIC -DPIC -shared -DDYNAMIC_LINKING 
	-o operclass.so operclass.c
gcc -I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic   -fPIC -DPIC -shared -DDYNAMIC_LINKING 
	-o certfp.so certfp.c
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/extbans'
cd third; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/third'
../../buildmod
Building all third party modules...
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/third'
make[2]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules'
make[1]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src'

* UnrealIRCd compiled successfully
* YOU ARE NOT DONE YET! Run "make install" to install UnrealIRCd !

[root@h104 unrealircd-4.0.2]# echo $?
0
[root@h104 unrealircd-4.0.2]# 

最后安装

代码语言:javascript复制
[root@h104 unrealircd-4.0.2]# make install 
Building src
make[1]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src'
cd modules; make 'CFLAGS=-I/usr/local/src/irc/unrealircd-4.0.2/include -pthread -I/usr/local/src/irc/unrealircd-4.0.2/extras/regexp/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/include -I/usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/include -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wl,-export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt -lnsl  -ldl /usr/local/src/irc/unrealircd-4.0.2/extras/regexp/lib/libtre.a     -pthread -L/usr/local/src/irc/unrealircd-4.0.2/extras/pcre2/lib -lpcre2-8   -L../extras/c-ares/lib /usr/local/src/irc/unrealircd-4.0.2/extras/c-ares/lib/libcares.a   ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/root/unrealircd/bin' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=/usr/local/src/irc/unrealircd-4.0.2/include' 'MANDIR=' 'RM=/usr/bin/rm' 'CP=/usr/bin/cp' 'TOUCH=/usr/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=-lssl -lcrypto' 'CRYPTOINCLUDES=' 'URL='  all
make[2]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules'
cd chanmodes; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/chanmodes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/chanmodes'
cd usermodes; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/usermodes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/usermodes'
cd snomasks; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/snomasks'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/snomasks'
cd extbans; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/extbans'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/extbans'
cd third; make all
make[3]: Entering directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/third'
../../buildmod
Building all third party modules...
make[3]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules/third'
make[2]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src/modules'
make[1]: Leaving directory `/usr/local/src/irc/unrealircd-4.0.2/src'

* UnrealIRCd compiled successfully
* YOU ARE NOT DONE YET! Run "make install" to install UnrealIRCd !

/usr/bin/install -m 0700 -d /root/unrealircd/bin
/usr/bin/install -m 0700 src/ircd /root/unrealircd/bin/unrealircd
/usr/bin/install -m 0700 -d /root/unrealircd/doc
/usr/bin/install -m 0600 doc/Authors doc/coding-guidelines doc/tao.of.irc /root/unrealircd/doc
/usr/bin/install -m 0700 -d /root/unrealircd/conf
/usr/bin/install -m 0600 doc/conf/*.conf /root/unrealircd/conf
/usr/bin/install -m 0700 -d /root/unrealircd/conf/aliases
/usr/bin/install -m 0600 doc/conf/aliases/*.conf /root/unrealircd/conf/aliases
/usr/bin/install -m 0700 -d /root/unrealircd/conf/help
/usr/bin/install -m 0600 doc/conf/help/*.conf /root/unrealircd/conf/help
/usr/bin/install -m 0700 -d /root/unrealircd/conf/examples
/usr/bin/install -m 0600 doc/conf/examples/*.conf /root/unrealircd/conf/examples
/usr/bin/install -m 0700 -d /root/unrealircd/conf/ssl
/usr/bin/install -m 0600 doc/conf/ssl/curl-ca-bundle.crt /root/unrealircd/conf/ssl
/usr/bin/install -m 0700 unrealircd /root/unrealircd
/usr/bin/install -m 0700 -d /root/unrealircd/modules
/usr/bin/install -m 0700 src/modules/*.so /root/unrealircd/modules
/usr/bin/install -m 0700 -d /root/unrealircd/modules/usermodes
/usr/bin/install -m 0700 src/modules/usermodes/*.so /root/unrealircd/modules/usermodes
/usr/bin/install -m 0700 -d /root/unrealircd/modules/chanmodes
/usr/bin/install -m 0700 src/modules/chanmodes/*.so /root/unrealircd/modules/chanmodes
/usr/bin/install -m 0700 -d /root/unrealircd/modules/snomasks
/usr/bin/install -m 0700 src/modules/snomasks/*.so /root/unrealircd/modules/snomasks
/usr/bin/install -m 0700 -d /root/unrealircd/modules/extbans
/usr/bin/install -m 0700 src/modules/extbans/*.so /root/unrealircd/modules/extbans
/usr/bin/install -m 0700 -d /root/unrealircd/modules/third
/usr/bin/install: cannot stat ‘src/modules/third/*.so’: No such file or directory

/usr/bin/install -m 0700 -d /root/unrealircd/tmp
/usr/bin/install -m 0700 -d /root/unrealircd/cache
/usr/bin/install -m 0700 -d /root/unrealircd/data
/usr/bin/install -m 0700 -d /root/unrealircd/logs

* UnrealIRCd is now installed.
* Leave this directory and run "cd /root/unrealircd" now
* Directory layout:
 * Base directory: /root/unrealircd
  * Configuration files: /root/unrealircd/conf
  * Log files: /root/unrealircd/logs
  * Modules: /root/unrealircd/modules
* To start/stop UnrealIRCd run: /root/unrealircd/unrealircd"

* Consult the documentation online at:
  * https://www.unrealircd.org/docs/UnrealIRCd_4_documentation
  * https://www.unrealircd.org/docs/FAQ
* You may also wish to install a cron job to ensure UnrealIRCd is always running:
  * https://www.unrealircd.org/docs/Cron_job

Again, be sure to change to the /root/unrealircd directory!
[root@h104 unrealircd-4.0.2]# echo $?
0
[root@h104 unrealircd-4.0.2]# 

0 人点赞