gndy / seafile-docs-ko

Manual for Seafile server (Korean)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac OS X

Setup homebrew environment

  1. Install xcode
  • Download Xcode from website or App Store
  • Xcode Command Line Utilities might be sufficient to build seafile, but it is left untested yet.
  1. Install homebrew
  • Make sure you don't have macports installed or uninstalled completely
  • Execute this from Terminal ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Then install seafile from homebrew

brew tap homebrew/dupes
brew tap Chilledheart/seafile
brew install libsearpc
brew install ccnet
brew install seafile --HEAD
brew install seafile-client --HEAD

If you face any installation issue, please report it with your homebrew logs

If it is an issue while using homebrewed seafile, please report it with your seafile logs

Setup macports environment

  1. Install xcode
  1. Install macports
  1. Install following libraries and tools using port

     sudo port install autoconf intltool automake pkgconfig libtool glib2 \
     ossp-uuid libevent vala openssl git qt4-mac python27 jansson gsed
    
  2. Install python

     sudo port select --set python python27
     sudo port install py27-pip
    
  3. Set pkg config environment

     export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig
     export LIBTOOL=glibtool
     export LBITOOLIZE=glibtoolize
     export SED=gsed
     export LDFLAGS="-L/opt/local/lib -luuid -L/usr/local/lib -Wl,-headerpad_max_install_names"
    

Compiling libsearpc

Download libsearpc, then:

    ./autogen.sh
    ./configure
    make
    sudo make install

Compiling ccnet

Download ccnet, then:

    ./autogen.sh
    CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib -luuid -L/usr/local/lib -Wl,-headerpad_max_install_names" ./configure
    make
    sudo make install

Compiling seafile

  1. Download seafile

  2. Compile

     ./autogen.sh
     SED=sed CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib -luuid -L/usr/local/lib -Wl,-headerpad_max_install_names" ./configure
     make
     sudo make install
    

Compiling seafile-client and packaging it

  1. prepare for building:

     ./genapp.sh xcode
    

    Generate xcode project from qmake

  2. Compile seafile.app:

     ./genapp.sh build
    

    If you are told build failed, you might try to use HEAD version of seafile-client, or any tag which ends up with "mac"

  3. Package seafile.app: ./genapp.sh otool ./genapp.sh package ./genapp.sh dmg

    This will copy ccnet, seaf-daemon and other libraries to seafile-client, and use install_name_tool to modify the library paths in ccnet, seaf-daemon. After compiling, it will copy seafile.app to ${top_dir}/../seafile-${VERSION}. You can also compiling seafile.app in xcode.

  4. Go to seafile-applet.app and see if it can run correctly.

Problem you may encounter

  1. If install_name_tool reports "malformed object" "unknown load command", It may be the version of xcode command line tools incompatible with install_name_tool.
  2. If xcode can't find glib, Corrects xcode's "build settings/search paths/header search".

About

Manual for Seafile server (Korean)