www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC install guide

reply "eles" <eles eles.com> writes:
The install guide at:

http://gdcproject.org/wiki/Installation

is wrong/outdated, at least for Ubuntu.

Several issues:


/usr/src/gcc-4.7/gcc-4.7-4.7.2

is not true. The sources are installed in the current directory, 
not in /usr/src, at least for regular users.


"debian_patches += gcc-d-lang", and comment it out

there is no such file as debian/rules.patch, only a 
debian/gdc.preinst, which has no patch line inside.



there is no script update-gcc.sh

Finally, the script gcc-setup.sh has as sole help:

Usage: ./setup-gcc.sh [OPTION] PATH

which is quite cryptic. [OPTION] field should be... optional, 
however when called with:

./setup-gcc.sh ~/gcc/gcc-defaults-1.120ubuntu8

it says:

error: invalid option 
'/home/e_ftotir/gcc/gcc-defaults-1.120ubuntu8'

Thanks.
Mar 25 2013
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
On 25 March 2013 11:24, eles <eles eles.com> wrote:

 The install guide at:

 http://gdcproject.org/wiki/**Installation<http://gdcproject.org/wiki/Installation>

 is wrong/outdated, at least for Ubuntu.

 Several issues:


 /usr/src/gcc-4.7/gcc-4.7-4.7.2

 is not true. The sources are installed in the current directory, not in
 /usr/src, at least for regular users.


 += gcc-d-lang", and comment it out

 there is no such file as debian/rules.patch, only a debian/gdc.preinst,
 which has no patch line inside.



 there is no script update-gcc.sh

 Finally, the script gcc-setup.sh has as sole help:

 Usage: ./setup-gcc.sh [OPTION] PATH

 which is quite cryptic. [OPTION] field should be... optional, however when
 called with:

 ./setup-gcc.sh ~/gcc/gcc-defaults-1.**120ubuntu8

 it says:

 error: invalid option '/home/e_ftotir/gcc/gcc-**defaults-1.120ubuntu8'

 Thanks.
The only exception to Debian/Ubuntu is that they are multiarch systems, and you need to tell vanilla GCC where to find the library/headers. Other than that, the general installation goes fine. -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
Mar 25 2013