Howto install seafile server on Mac OSX Mavericks Server

1,229 views
Skip to first unread message

Alexander Backendorf

unread,
Jun 17, 2014, 5:19:00 AM6/17/14
to sea...@googlegroups.com
Hello,

I do have a Mavericks Server running at home. Now I wanted to install the Seafile-Server on this machine, but I cannot find any information how to do this on a Mac. All I can find is information about installing the client on Mac OSX.

My Mac is a 2012 Mac Mini running OSX 10.9.3 and Server-Version 3.1.2.

Thank you in advance

Shuai Lin

unread,
Jun 17, 2014, 6:46:15 AM6/17/14
to sea...@googlegroups.com
I'm sorry but seafile server does not support MacOS at this moment.


--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/d/optout.

Andy Fuchs

unread,
Jun 26, 2014, 5:34:49 AM6/26/14
to sea...@googlegroups.com
Is there any time-frame to support Mac OSX?

thx

andy

Shuai Lin

unread,
Jun 26, 2014, 5:48:16 AM6/26/14
to sea...@googlegroups.com
Not yet.


--

Troed Sångberg

unread,
Oct 28, 2014, 9:23:05 AM10/28/14
to sea...@googlegroups.com
FYI,

I've been able to get Seafile server working on my Mac Mini (Lion). I followed the Linux installation instructions and installed needed packages using Macports and PIP.

In addition to "just" installing the right packages, the following is also needed:

1) Fix the libtool check in in libsearpc autogen.sh
2) Manually compile and install libevent to get the header files (no devel package available)
3) Rewrite seafile-controller.c to use _NSGetExecutablePath() instead of /proc/self*

The seafile-admin script also never prompted for admin email and password, don't know why, and to get reset-admin.sh to work readline has to be replaced with greadline (port install coreutils) as well as fixing the very weird python detection code.

With this done I now have Seafile working (briefly tested), although there's currently an issue with processes constantly being restarted (haven't looked into it) which causes the machine to run out of pid:s after a while. I don't know when I will have time to debug it.

And no, sorry - a more detailed writeup than the above won't be posted until I have everything working. There are a few more packages, like proctools and SIX that need to be installed that I couldn't see in the Linux description. Also, I had some issues where dual installations of pkgconfig and Python did confuse the system, solved with symlinks where needed.

The delta between the current Linux setup and OS X is very small. Actual code needing to be rewritten is on the order of ten lines in total. I'm posting this more to let people know it _can_ be done - if you put effort into it and understand the workings of package management and some coding.

/Troed

*) The method init_seafile_path needs to look like this. A proper implementation should handle dynamic length path of course.

static void
init_seafile_path ()
{
    char executable[1024];
    uint32_t size = sizeof(executable);
    if (_NSGetExecutablePath(executable, &size) != 0) {
        seaf_warning("buffer too small; need size %u\n", size);
        return;
    }

    bin_dir = g_path_get_dirname (executable);

    char *tmp = NULL;
    tmp = g_path_get_dirname (bin_dir);
    installpath = g_path_get_dirname (tmp);

    topdir = g_path_get_dirname (installpath);

    g_free (tmp);
}


On Tuesday, June 17, 2014 11:19:00 AM UTC+2, Alexander Backendorf wrote:

Joel Kline

unread,
Apr 2, 2015, 10:58:26 PM4/2/15
to sea...@googlegroups.com
Thanks Troed for your code snippet! It helped me get SeaFile Server built and running on Mac OS 10.8.

The issue with the process re-spawning is also in seafile-controller.c. Same issue, where I guess it's checking in /proc/ for the pid and when it doesn't find it, it restarts the server. So I just removed that. Maybe not the best, but it hasn't been dying on me and if it does, it's only for my use so I'll just start it back up.

Shuai, any update on Mac OS X support? I've been running it for the past few days and everything seems to work great, but I'll be the first to admit that it probably isn't the best idea for me to be running it on an unsupported platform :-)

Thanks for your work on this software, it works really well!
Reply all
Reply to author
Forward
0 new messages