Installing Bluefish - Install from Source Code: Difference between revisions
m Created page with '__NOTOC__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=4. Installing a Bluefish Source Distribution |prev=Man 2 ch02s03 |Subtitle=Chapter II. Installing Bluefish |ne…' |
DrMartinus (talk | contribs) updated links to other pages |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
{{Man2top | {{Man2top | ||
|lang=en | |lang=en | ||
|rev=2. | |rev=2.2.12 | ||
|st=d | |st=d | ||
|Title=4. Installing a Bluefish Source Distribution | |Title=4. Installing a Bluefish Source Distribution | ||
Line 9: | Line 9: | ||
|next=Man 2 ch02s05 | |next=Man 2 ch02s05 | ||
}} | }} | ||
{{toc}} | |||
By installing Bluefish from source, you may be able to get a newer version (from SVN) than those distributed as binaries. You may also need to compile from source if no binary is available for your system. | By installing Bluefish from source, you may be able to get a newer version (from SVN) than those distributed as binaries. You may also need to compile from source if no binary is available for your system. | ||
== 4.1. Quick Installation Overview == | |||
This is the short installation description. Consult the other chapters if you are in doubt. | This is the short installation description. Consult the other chapters, e.g. [[Bluefish Wiki:Installing Bluefish from Source | Installing Bluefish from Source]] if you are in doubt. | ||
Bluefish is installed using the standard 'configure, make, make install' steps. Assuming you have downloaded a bluefish source package, for instance bluefish-ver.tar.gz (naturally, change the filename to what's appropriate), you complete the installation with the following steps: | Bluefish is installed using the standard 'configure, make, make install' steps. Assuming you have downloaded a bluefish source package, for instance bluefish-ver.tar.gz (naturally, change the filename to what's appropriate), you complete the installation with the following steps: | ||
Line 24: | Line 21: | ||
# '''tar -zxvf bluefish-ver.tar.gz''' | # '''tar -zxvf bluefish-ver.tar.gz''' | ||
# '''cd bluefish-ver''' | # '''cd bluefish-ver''' | ||
# '''./configure''' (see [[ | # '''./configure''' (see [[Installing Bluefish - Install from Source Code Options|“Configure Options”]]) | ||
# '''make''' | # '''make''' | ||
# '''su -c 'make install'''' | # '''su -c 'make install'''' | ||
Line 31: | Line 28: | ||
The '''configure''' script is used to automatically find the appropriate settings for your system. Because of differences between systems, this compile-time configuration is necessary, and configure solves this challenge easily -- with an added bonus of telling whether you have everything needed to compile. | The '''configure''' script is used to automatically find the appropriate settings for your system. Because of differences between systems, this compile-time configuration is necessary, and configure solves this challenge easily -- with an added bonus of telling whether you have everything needed to compile. | ||
The configure-script can be | The configure-script can be configured. This is something you most likely will not need to do, but it is easy to do if necessary. For a complete list of configure options, see [[Installing Bluefish - Install from Source Code Options|“Configure Options”]] | ||
== 4.2. Installing from Development Source Tree == | |||
You can get the latest Bluefish version via SVN using the instructions in [[Man 2 ch01s04|Section 4, “Latest Developmental Version”]]: | You can get the latest Bluefish version via SVN using the instructions in [[Man 2 ch01s04|Section 4, “Latest Developmental Version”]]: | ||
cd | cd TheChosenDirectory | ||
{{SVN}} | |||
Next, install it with the following steps: | Next, install it with the following steps: | ||
# Enter the directory containing the bluefish source files: <br/>'''cd | # Enter the directory containing the bluefish source files: <br/>'''cd TheChosenDirectory/bluefish-code''' | ||
# Next, generate the configure script by running <br/>'''./autogen.sh''' | # Next, generate the configure script by running <br/>'''./autogen.sh''' | ||
# Then, you run <br/>'''./configure''' with whatever options you might want (see [[ | # Then, you run <br/>'''./configure''' with whatever options you might want (see [[Installing Bluefish - Install from Source Code Options|“Configure Options”]]). <br/> This example will cause ''make install'' to install Bluefish with the specified directory as prefix (i.e. the binary is installed in /usr/bin/bluefish-unstable):'''./configure --prefix=/usr'''<br/>By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc.<br/>Run `./configure -h' to list available options.<br/>If configure fails, it will probably give a hint telling you what is missing or wrong. | ||
# Assuming it completed successfully, your next step is to compile Bluefish. To do this, run '''make'''. | # Assuming it completed successfully, your next step is to compile Bluefish. To do this, run '''make'''. | ||
# When ''make'' has completed, you can install Bluefish: (''su'' to root first, unless you specified a user writable prefix to configure), then issue: '''<nowiki># make install</nowiki>'''. | # When ''make'' has completed, you can install Bluefish: (''su'' to root first, unless you specified a user writable prefix to configure), then issue: '''<nowiki># make install</nowiki>'''. | ||
#Now, type '''bluefish-unstable''' to run. | #Now, type '''bluefish-unstable''' to run. | ||
To update the sources at a later time: | To update the sources at a later time: | ||
# Enter the directory containing the bluefish source files: '''cd | # Enter the directory containing the bluefish source files: '''cd TheChosenDirectory/bluefish-code''' | ||
# '''svn update''' | # '''svn update''' | ||
# and then run '''./configure''', '''make''' and '''<nowiki>#</nowiki> make install'''. | # and then run '''./configure''', '''make''' and '''<nowiki>#</nowiki> make install'''. | ||
== 4.3. Problems Compiling? == | |||
If compilation fails, first make sure you have the necessary utilities and libraries. See [[Man 2 ch02#Section 1, “Requirements”| Section 1, “Requirements”]]. | If compilation fails, first make sure you have the necessary utilities and libraries. See [[Man 2 ch02#Section 1, “Requirements”| Section 1, “Requirements”]]. | ||
Line 61: | Line 58: | ||
* ... more trouble to come ;-) | * ... more trouble to come ;-) | ||
If you're unable to find a solution (or if you think you have a solution others might want), feel free to contact us on the ''bluefish-dev'' list (See [[Man 2 pr01s02#2.4. Contact Us| Section 2.4, “Contact Us”]]). You may want to contact the bluefish package maintainer for your distribution first when | If you're unable to find a solution (or if you think you have a solution others might want), feel free to contact us on the ''bluefish-dev'' list (See [[Man 2 pr01s02#2.4. Contact Us| Section 2.4, “Contact Us”]]). You may want to contact the bluefish package maintainer for your distribution first when appropriate. | ||
Latest revision as of 07:11, 22 December 2022
By installing Bluefish from source, you may be able to get a newer version (from SVN) than those distributed as binaries. You may also need to compile from source if no binary is available for your system.
4.1. Quick Installation Overview
This is the short installation description. Consult the other chapters, e.g. Installing Bluefish from Source if you are in doubt.
Bluefish is installed using the standard 'configure, make, make install' steps. Assuming you have downloaded a bluefish source package, for instance bluefish-ver.tar.gz (naturally, change the filename to what's appropriate), you complete the installation with the following steps:
- tar -zxvf bluefish-ver.tar.gz
- cd bluefish-ver
- ./configure (see “Configure Options”)
- make
- su -c 'make install'
- Now, type bluefish to run. You may delete the bluefish-ver directory.
The configure script is used to automatically find the appropriate settings for your system. Because of differences between systems, this compile-time configuration is necessary, and configure solves this challenge easily -- with an added bonus of telling whether you have everything needed to compile.
The configure-script can be configured. This is something you most likely will not need to do, but it is easy to do if necessary. For a complete list of configure options, see “Configure Options”
4.2. Installing from Development Source Tree
You can get the latest Bluefish version via SVN using the instructions in Section 4, “Latest Developmental Version”:
cd TheChosenDirectory svn checkout https://svn.code.sf.net/p/bluefish/code/trunk bluefish-code
Next, install it with the following steps:
- Enter the directory containing the bluefish source files:
cd TheChosenDirectory/bluefish-code - Next, generate the configure script by running
./autogen.sh - Then, you run
./configure with whatever options you might want (see “Configure Options”).
This example will cause make install to install Bluefish with the specified directory as prefix (i.e. the binary is installed in /usr/bin/bluefish-unstable):./configure --prefix=/usr
By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc.
Run `./configure -h' to list available options.
If configure fails, it will probably give a hint telling you what is missing or wrong. - Assuming it completed successfully, your next step is to compile Bluefish. To do this, run make.
- When make has completed, you can install Bluefish: (su to root first, unless you specified a user writable prefix to configure), then issue: # make install.
- Now, type bluefish-unstable to run.
To update the sources at a later time:
- Enter the directory containing the bluefish source files: cd TheChosenDirectory/bluefish-code
- svn update
- and then run ./configure, make and # make install.
4.3. Problems Compiling?
If compilation fails, first make sure you have the necessary utilities and libraries. See Section 1, “Requirements”.
Next, see if your system is mentioned in Section 3, “System Specific Installation Issues”.
Below is a list of well known problems that have been mentioned on the bluefish-dev list:
- make: *** No targets specified and no makefile found. Stop.
This will happen if configure fails and you try to run make. It also happens if you're running make from the wrong directory. - ... more trouble to come ;-)
If you're unable to find a solution (or if you think you have a solution others might want), feel free to contact us on the bluefish-dev list (See Section 2.4, “Contact Us”). You may want to contact the bluefish package maintainer for your distribution first when appropriate.