Skip to content

Latest commit

 

History

History
113 lines (75 loc) · 3.09 KB

osx.md

File metadata and controls

113 lines (75 loc) · 3.09 KB

Mac OS X

Option 1: Homebrew (conflicting with macports)

###Setup homebrew environment

  1. Install xcode
  • Download Xcode from website or App Store
  • Xcode Command Line Utilities might be enough to build seafile, but it is left untested yet.
  1. Install homebrew

visit http://brew.sh/ for more

Then install seafile from homebrew

brew tap Chilledheart/seafile
brew install seafile-client

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

Option 2: Macports (conflicting with homebrew)

###Setup macports environment

  1. Install xcode
  1. Install macports

visit https://www.macports.org/ for more

  1. Install following libraries and tools using port

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

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

     export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig
     export LIBTOOL=glibtool
     export LIBTOOLIZE=glibtoolize
     export CPPFLAGS="-I/opt/local/include"
     export LDFLAGS="-L/opt/local/lib -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
    ./configure
    make
    sudo make install

Compiling seafile

  1. Download seafile

  2. Compile

     ./autogen.sh
     ./configure --disable-fuse
     make
     sudo make install
    

Compiling seafile-client and packaging it

  1. execute the building script:

     ./scripts/build.py
    
  2. Go to Release directory and see if seafile-applet.app 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".