Bluefish Wiki:Installing Bluefish from Source: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
Fal7i (talk | contribs)
Created page with '__NOTOC__ __NOEDITSECTION__ {{Man1top |lang=en |rev=1.0.6 |Title=4. Installing a Bluefish Source Distribution |prev=Man 1 ch02s03 |Subtitle=Chapter II. Installing …'
 
DrMartinus (talk | contribs)
Replaced SVN-checkout with the template call
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
__NOEDITSECTION__
{{Man2top
{{Man1top
|lang=en
|lang=en
|rev=1.0.6
|rev=2.2.12
|Title=4. Installing a Bluefish Source Distribution
|Title=Installing a Bluefish Source Distribution
|prev=Man 1 ch02s03
|prev=Man 2 ch02s03
|Subtitle=Chapter II. Installing Bluefish
|Subtitle=Chapter II. Installing Bluefish
|next=Man 1 ch02s05
|next=Man 2 ch02s05
}}
}}
== 4. Installing a Bluefish Source Distribution ==
=== Installing Bluefish from the source code ===
<div style="float:right; background-color:#E5ECF9;border:1px solid #3061C2;">
<div style="float:right; background-color:#E5ECF9;border:1px solid #3061C2;">
*[[#4.1. Quick Installation Overview| 4.1. Quick Installation Overview]]  
*[[#4.1. Quick Installation Overview| 4.1. Quick Installation Overview]]  
Line 15: Line 14:
*[[#4.3. Problems Compiling?| 4.3. Problems Compiling?]]  
*[[#4.3. Problems Compiling?| 4.3. Problems Compiling?]]  
</div>
</div>
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. However, be aware that the version compiled from the newest source code may contain bugs. If you encounter any, please report them to the developers.


=== 4.1. Quick Installation Overview ===
=== 4.1. Quick Installation Overview ===
Line 22: Line 21:
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:


# <tt>'''tar -zxvf bluefish-ver.tar.gz'''</tt>
# '''tar -zxvf bluefish-ver.tar.gz'''
# <tt>'''cd bluefish-ver'''</tt>
# '''cd bluefish-ver'''
# <tt>'''./configure'''</tt>
# '''./configure''' (see [[Man 1 ch02s05|Section 5, “Configure Options”]])
# <tt>'''make'''</tt>
# '''make'''
# <tt>'''su -c 'make install''''</tt>
# '''su -c 'make install''''
# Now, type <tt>'''bluefish'''</tt> to run. You may delete the bluefish-ver directory.
# 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 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, um, 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 [[Man 1 ch02s05|Section 5, “Configure Options”]]
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 [[Man 2 ch02s05|Section 5, “Configure Options”]]


=== 4.2. Installing from Development Source Tree ===
=== 4.2. Installing from Development Source Tree ===
You can get the latest Bluefish version via SVN using the instructions in [[Man 1 ch01s04|Section 4, “Latest Developmental Version”]]. Next, install it with the following steps:
You can get the latest Bluefish version via SVN using the instructions in [[Man 2 ch01s04|Section 4, “Latest Developmental Version”]]:
cd TheChosenDirectory
{{SVN|checkout}}


# Enter the directory containing the bluefish source files: <tt>'''cd bluefish'''</tt>
Next, install it with the following steps:
# Next, generate the configure script by running <tt>'''./autogen.sh'''</tt>
# Then, you run '''configure''' with whatever options you might want. <br/> This example will cause '''make install''' to install Bluefish with the specified directory as prefix (i.e. the binary is installed in /usr/local/bf-cvs/bin/bluefish). This is most likely not what you want -- just run configure without parameters instead.<br/>  '''$''' ./configure --prefix=/usr/local/bf-cvs<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 <tt>'''make'''</tt>.
# When '''make''' has completed, you can install Bluefish: ('''su''' to root first, unless you specified a user writable prefix to configure), then issue: <tt>'''<nowiki># make install</nowiki>'''</tt>.


To update the sources at a later time, you run the command <tt>'''cvs -z3 -q update'''</tt> from within the bluefish-gtk2 directory.
# Enter the directory containing the bluefish source files: <br/>'''cd TheChosenDirectory/bluefish-code'''
# Next, generate the configure script by running <br />'''./autogen.sh'''
# Then, you run <br/>'''./configure''' with whatever options you might want (see [[Man 2 ch02s05|Section 5, “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):<br />'''./configure --prefix=/usr/bin/bluefish-unstable'''<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'''.
# 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.
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 '''<nowiki>#</nowiki> make install'''.


=== 4.3. Problems Compiling? ===
=== 4.3. Problems Compiling? ===
If compilation fails, first make sure you have the necessary utilities and libraries. See [[Man 1 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”]].


Next, see if your system is mentioned in [[Man 1 ch02s03|Section 3, “System Specific Installation Issues”]].
Next, check if your system is mentioned in [[Man 2 ch02s03|Section 3, “System Specific Installation Issues”]].


Below is a list of well known problems that have been mentioned on the bluefish-dev list:
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.<br/> This will happen if ''configure'' fails and you try to run '''make'''. It also happens if you're running '''make''' from the wrong directory.
* make: *** <tt>No targets specified and no makefile found. Stop.</tt><br/> This will happen if ''configure'' fails and you try to run '''make'''. Check the output of ''configure'' thoroughly and resolve any errors. Then run ''make''. <br />It also happens if you're running '''make''' from the wrong directory. It must be run from the same directory where the source code has been downloaded to and where ''./configure'' has been run.
* ... 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 1 pr01s02#2.4. Contact Us| Section 2.4, “Contact Us”]]). You may want to contact the bluefish package maintainer for your distribution first when appropriated.
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 appropriated.






{{Man1bottom
{{Man2bottom
|prev=Man 1 ch02s03
|prev=Man 1 ch02s03
|up=Man 1 ch02
|up=Man 1 ch02

Latest revision as of 13:13, 17 December 2022


Installing Bluefish from the source code

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. However, be aware that the version compiled from the newest source code may contain bugs. If you encounter any, please report them to the developers.

4.1. Quick Installation Overview

This is the short installation description. Consult the other chapters 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:

  1. tar -zxvf bluefish-ver.tar.gz
  2. cd bluefish-ver
  3. ./configure (see Section 5, “Configure Options”)
  4. make
  5. su -c 'make install'
  6. 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 Section 5, “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:

  1. Enter the directory containing the bluefish source files:
    cd TheChosenDirectory/bluefish-code
  2. Next, generate the configure script by running
    ./autogen.sh
  3. Then, you run
    ./configure with whatever options you might want (see Section 5, “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/bin/bluefish-unstable
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.

  1. Assuming it completed successfully, your next step is to compile Bluefish. To do this, run make.
  2. 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.
  3. Now, type bluefish-unstable to run.

To update the sources at a later time:

  1. Enter the directory containing the bluefish source files: cd TheChosenDirectory/bluefish-code
  2. svn update
  3. 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, check 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. Check the output of configure thoroughly and resolve any errors. Then run make.
    It also happens if you're running make from the wrong directory. It must be run from the same directory where the source code has been downloaded to and where ./configure has been run.
  • ... 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 appropriated.