The Adventures of FileZilla installation in Ubuntu

Source: Internet
Author: User
Tags filezilla wxwidgets
Compile source code, and then compile: the system prompts that wxWidgets is not found... previously in school often use FileZilla pull source code, and then compile: prompt no wxWidgets so and then download wxWidgets, so downloaded from the http://www.wxwidgets.org/The latest version of wxwidgets-2.9.3.tar.bz2, unzip the installation, after installation; compile FileZilla again.
Unexpectedly, the following error occurs: configure: error: idna. h not found which is part of GNU libidn.
Dizzy ............
You can only open configure to check the Shell script, including the following:
?
# Libidn checks
#-------------
Ac_fn_c_check_header_mongrel "$ LINENO" "idna. h" "ac_cv_header_idna_h" "$ ac_includes_default"
If test "x $ ac_cv_header_idna_h" = xyes; then:
Else
As_fn_error $? "Idna. h not found which is part of GNU libidn." "$ LINENO" 5
Fi
Checking for wxWidgets version> = 2.8.12 (-- unicode = yes -- universal = no)... yes (version 2.9.3)
Checking for wxWidgets static library... no
Configure: error: You need to use wxWidgets 2.8.x to compile this program.
Copy code
?


If the Libidn library is not installed, install it:
Sudo apt-get install libidn *
Think about this. OK.
Not expected is a prompt
Checking for wxWidgets version> = 2.8.12 (-- unicode = yes -- universal = no)... yes (version 2.9.3)
Checking for wxWidgets static library... no
Configure: error: You need to use wxWidgets 2.8.x to compile this program.
Copy code
I'm dizzy. my version is 2.9.3, much higher than 2.8.x. I can only modify the Shell script: configure
If test "$ wx_config_major_version"-gt "2" | test "$ wx_config_minor_version"-gt "8"; then
As_fn_error $? "You need to use wxWidgets 2.8.x to compile this program." "$ LINENO" 5
Fi
Copy code
The original version cannot be later than 2.8 to change 8 to 9; then, change all the following 2.8 to. * and then OK.
If test-n "$ LIBGNUTLS_CFLAGS"; then
Pkg_cv_LIBGNUTLS_CFLAGS = "$ LIBGNUTLS_CFLAGS"
Elif test-n "$ PKG_CONFIG"; then
If test-n "$ PKG_CONFIG "&&\
{$ As_echo "$ as_me :$ {as_lineno-$ LINENO}: \ $ PKG_CONFIG -- exists -- print-errors \" gnutls >=2.8.3 \ "" ;}> & 5
($ PKG_CONFIG -- exists -- print-errors "gnutls> = 2.8.3") 2> & 5
Ac_status = $?
$ As_echo "$ as_me :$ {as_lineno-$ LINENO }:\$? = $ Ac_status "> & 5
Test $ ac_status = 0 ;}; then
Pkg_cv_LIBGNUTLS_CFLAGS = '$ PKG_CONFIG -- cflags "gnutls> = 2.8.3" 2>/dev/Null'
Else
Pkg_failed = yes
Fi
Else
Pkg_failed = untried
Fi
If test-n "$ LIBGNUTLS_LIBS"; then
Pkg_cv_LIBGNUTLS_LIBS = "$ LIBGNUTLS_LIBS"
Elif test-n "$ PKG_CONFIG"; then
If test-n "$ PKG_CONFIG "&&\
{$ As_echo "$ as_me :$ {as_lineno-$ LINENO}: \ $ PKG_CONFIG -- exists -- print-errors \" gnutls >=2.8.3 \ "" ;}> & 5
($ PKG_CONFIG -- exists -- print-errors "gnutls> = 2.8.3") 2> & 5
Ac_status = $?
$ As_echo "$ as_me :$ {as_lineno-$ LINENO }:\$? = $ Ac_status "> & 5
Test $ ac_status = 0 ;}; then
Pkg_cv_LIBGNUTLS_LIBS = '$ PKG_CONFIG -- libs "gnutls> = 2.8.3" 2>/dev/Null'
Else
Pkg_failed = yes
Fi
Else
Pkg_failed = untried
Fi
Copy code
 
Summary: before installing a software, you must check the relevant documents: INSTALL, README, etc. the software dependency information will be provided, such as the Requirements of FileZilla INSTALL:
8 FileZilla depends on the following libraries:
9-wxWidgets 2.8.12 or greater
10-libidn
11-GnuTLS 2.8.3 or greater
12-libbench on * nix
13-sqlite3 3.7 or greater
Copy code
View the configure file during compilation or usage. If you are still confused, GOOGLE.
 

The author's worm-tolerant sleep
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.