@Wodchelle said:
This command grabs the entire directory including a bunch of folders like "client" "color" "convert" "Debian" "sgp" etc. It looks like this guide is using just the /mux directory. Are those other upper level directories needed for anything?
It looks like you're right about only needing the mux directory. It's a bit of a pain to try to only clone one sub-directory, so you can either mv the directory out and then delete the tinymux directory, leave it as is for possible updates/upgrades (though I don't know how often that happens) or grap the tar zipped file from the tinymux site. I'll update the guide to take this into accoutn.
If logged in with the owner account I created it looks like you need to sudo commands:
The sudo command requirement is likely because the user account you have doesn't have write access, try the following:
cd /var/www
sudo chown -R <name>:<name> tinymux
Where <name> is the account you want to use and tinymux is presumably the name of the directory of the git clone.
However when I run the sudo make depend command I get the following:
:/var/www/tinymux/mux/src$ sudo make depend
for i in _build.cpp alarm.cpp alloc.cpp attrcache.cpp boolexp.cpp bsd.cpp command.cpp comsys.cpp conf.cpp cque.cpp create.cpp db.cpp db_rw.cpp eval.cpp file_c.cpp flags.cpp funceval.cpp funceval2.cpp functions.cpp funmath.cpp game.cpp help.cpp htab.cpp local.cpp log.cpp look.cpp mail.cpp match.cpp mathutil.cpp mguests.cpp modules.cpp move.cpp muxcli.cpp netcommon.cpp object.cpp predicates.cpp player.cpp player_c.cpp plusemail.cpp powers.cpp quota.cpp rob.cpp pcre.cpp set.cpp sha1.cpp speech.cpp stringutil.cpp strtod.cpp svdrand.cpp svdhash.cpp timer.cpp timeabsolute.cpp timedelta.cpp timeparser.cpp timeutil.cpp timezone.cpp unparse.cpp utf8tables.cpp vattr.cpp walkdb.cpp wild.cpp wiz.cpp libmux.cpp version.cpp unsplit.cpp slave.cpp stubslave.cpp ; do g++ -E -g -O -DSTUB_SLAVE -DINLINESQL -I/usr/include/mysql -M $i; done | ./unsplit > .depend~
functions.cpp:26:19: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^
compilation terminated.
game.cpp:30:19: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^
compilation terminated.
mv .depend~ .depend
Any idea what I can do to fix this? It looks like mysql is missing from /usr/include
You're right about the cause. Did you do the mediawiki install through digital ocean, or did you already have a server set up? The fix for this should be:
sudo apt-get install libmysqlclient-dev
After that installs, you should be able to run make depend
.