Difference between revisions of "Compiling FileZilla 3 and Getting Dependencies on Linux"

From FileZilla Wiki
Jump to navigationJump to search
m (just added 2 dependencies to make the configure execution shorter)
Line 1: Line 1:
 +
Note: This is an unofficial third-party guide
 +
 
This walkthrough is intended for use on a clean Linux distribution such as Ubuntu, Linux Mint, etc by a beginner who is unfamiliar with resolving dependencies.  
 
This walkthrough is intended for use on a clean Linux distribution such as Ubuntu, Linux Mint, etc by a beginner who is unfamiliar with resolving dependencies.  
  

Revision as of 16:14, 17 June 2016

Note: This is an unofficial third-party guide

This walkthrough is intended for use on a clean Linux distribution such as Ubuntu, Linux Mint, etc by a beginner who is unfamiliar with resolving dependencies.

Step-By-Step guide on how to use this script:

  1. Create a file called fzscript.sh in the directory where you wish to build Filezilla
  2. Copy the below script into the file, save and exit.
  3. Ensure fzscript.sh has permission to run
  4. Open terminal and change the current working directory to the location of fzscript.sh
  5. run this command: "sudo ./fzscript.sh"

The expected running time can be anywhere from 10 minutes to hours depending on computer speed and internet connection speed.

The script is publicly available at the pastebin link: http://pastebin.com/6r0dB43d

In case the script does not work, because the Linux libraries are not always up-to-date, follow this step-by-step guide to compile and install Filezilla Client.

Run the following commands from the Linux terminal:

  1. sudo apt-get install gettext
  2. sudo apt-get install autoconf
  3. sudo apt-get install automake
  4. sudo apt-get install libdbus-c++-dev
  5. sudo apt-get install libperl-dev
  6. sudo apt-get install libtool
  7. sudo apt-get install libgtk2.0-dev
  8. sudo apt-get install libsqlite3-dev
  9. sudo apt-get install libtinyxml
  10. sudo apt-get install libdbus-1-dev

To install the following dependencies, download the specified version or most recent if not specified, extract the downloaded files, navigate to the directory in the terminal and execute the commands:

  • sudo ./configure
  • sudo make
  • sudo make install
  • For #4 Nettle, use this special configure line: sudo ./configure --prefix=/usr/local --with-include-path=/usr/local/include --with-lib-path=/usr/local/lib
  1. libdbin download & install - http://ftp.gnu.org/gnu/libidn/
  2. GMP download & install - https://gmplib.org/
  3. libgcrypt and libgpg-error download & install - https://www.gnupg.org/download/index.html
  4. Nettle download & install - https://ftp.gnu.org/gnu/nettle/ (Version 2.7.1)
  5. Gnutls download & install - http://gnutls.org/download.html
  6. wxWidgets download & install https://www.wxwidgets.org/downloads/

To compile and install Filezilla, extract Filezilla's source code and navigate to the directory in a terminal. Then, execute the following commands:

  1. sudo autoreconf -i
  2. sudo ./configure
  3. sudo make
  4. sudo make install

If you get an error loading shared libraries at the make step, here is how to fix it:

  1. Run as a root in the Filezilla directory using this command: sudo su
  2. Execute the command: ldconfig
  3. Execute the command: Exit
  4. Try make again

If you followed these steps, executing filezilla in the terminal should run the program. If you get stuck in the compilation go back over the steps and be sure you installed every dependency as specified.