Skip to content

Installing CFAN on Fedora

Piotr Stankowski edited this page May 15, 2016 · 1 revision

Installing Mono on Fedora

The best way would be to follow instructions on http://www.mono-project.com install page.

Installing libcurl on Fedora

CFAN requires libcurl to download mods and it needs to be installed with the command dnf install libcurl-devel.

Certificates issue

CFAN may fail to download anything because it uses SSL connections but cannot find some cryptography doohickeys. The error message is:

Unhandled Exception:
System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed.
<snip>

or

Oh no! Our download failed with a certificate error!

Run the following command (as the same user you run CFAN with) to fix that:

mozroots --import --ask-remove

Running CFAN

Try to double-click cfan.exe. If the OS asks you for a program to open it with - type mono. The other option is to use the shell to start CFAN with:

Option 1:

mono cfan.exe

Option 2 (requires binutils setup):

# Make cfan.exe executable (you only need to do this once)
chmod 755 cfan.exe
# Start cfan
./cfan.exe

Non-English locale issue

If your system is in non-English locale (for example Cyrillic) then CFAN instead of updating database will fail with error:

Unhandled Exception:
System.NotSupportedException: CodePage 866 not supported

To remedy that run CFAN with a forced neutral locale (which is a good old Kerbal tradition).

LANG=C mono cfan.exe

Since CFAN is not localized this workaround has no downsides.

Outdated mono errors

Errors like:

System.Windows.Forms.SplitContainer doesn't implement interface System.ComponentModel.ISupportInitialize

mean you use an old version of Mono. CFAN is built using Mono 4.2 and requires Mono >= 3.x.x.