[Rspamd-Users] Build rspam package

G.W. Haywood rspamd at jubileegroup.co.uk
Fri Nov 12 12:14:12 UTC 2021

Hi there,

On Fri, 12 Nov 2021, rspam at padaru.com wrote:

> i try to build a own rspam package, is there somwhere a more detailed
> toturial as the official one: https://rspamd.com/downloads.html?

The instructions on that page are a little terse but I understand them
because I have built a lot of software on Linux machines.

Firstly, are you building on Linux?  If not, then the instructions will
probably be no use to you.

Secondly, have you tried to follow the instructions?  If you have, and
they did not work for you, perhaps you can explain exactly what you
did and exactly what were the results.  Assuming that you are building
on Linux or a similar operating system, before you follow any of the
instructions you would be expected to be running a shell as a normal
user - not as root - and to have as the current directory a place in
the filesystem to which your user has write access.  You would need to
have a working Internet connection, so that commands which perform
network operations like 'git' can do something useful for you.  Other
commands which rely on a working network are 'wget', 'curl' and 'dig'.

After successfully completing the

$ git clone --recursive https://github.com/rspamd/rspamd.git

step you will have a new sub-directory called 'rspamd' which contains
the sources which have been downloaded from the git repository for the
project.  You then need to create your new 'build' directory, then cd
into it, and run 'cmake' in it, to build rspamd in that directory.  To
recap, you are expected to have in your directory structure something
like this:


where the sources are in /home/user/rspamd/ and you do the build in
/home/user/rspamd.build/.  Of course there will be a lot of *other*
directories in there, but we are not interested in those just now.

The name of the build directory doesn't *have* to be rspamd.build
but it will make things easier if you don't call it something crazy
because when you ask questions about it people will probably expect
that you have called it 'rspamd.build' and not 'crazy.new.project'.

Note that I prepended a '$' symbol to the line 'git clone ...' above.
That is because you are expected to run the command as a normal user.
It is perhaps unfortunate that the '$' is missing from the Web page
instructions, but people who are familiar with using 'git' will know
what it means.

To build the software needs no permissions other than those of the
normal user because it works entirely in the build directory, but to
install it requires root permissions so the install step needs to be
done either as root or using 'sudo'.  That is why the shell 'prompt'
in the instructions is the '$' symbol, except for the 'make install'
step, where it is '#', which is the convention for a root prompt.  If
you have sudo permissions, then instead of switching to user root you
can use

$ sudo make install

Finally, how do you plan to use rspamd?  If you are having difficulty
building it, then you can probably expect more difficulties using it.

Anyway, I hope this helps.  Please let us know if it does not.



More information about the Users mailing list