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:

# apt-get source gcc-4.7     # this installs the GCC tarballs in 
/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.

# vi debian/rules.patch      # search for the line reads 
"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.

# ./update-gcc.sh /usr/src/gcc-4.7/gcc-4.7-4.7.2/src

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:
--047d7b5dbce2ebfddf04d8be2a89
Content-Type: text/plain; charset=ISO-8859-1

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:

 # apt-get source gcc-4.7     # this installs the GCC tarballs in
 /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.

 # vi debian/rules.patch      # search for the line reads "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.

 # ./update-gcc.sh /usr/src/gcc-4.7/gcc-4.7-4.7.**2/src

 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'; --047d7b5dbce2ebfddf04d8be2a89 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 2= 5 March 2013 11:24, eles <span dir=3D"ltr">&lt;<a href=3D"mailto:eles eles.= com" target=3D"_blank">eles eles.com</a>&gt;</span> wrote:<br><blockquote c= lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;= padding-left:1ex"> The install guide at:<br> <br> <a href=3D"http://gdcproject.org/wiki/Installation" target=3D"_blank">http:= //gdcproject.org/wiki/<u></u>Installation</a><br> <br> is wrong/outdated, at least for Ubuntu.<br> <br> Several issues:<br> <br> # apt-get source gcc-4.7 =A0 =A0 # this installs the GCC tarballs in /usr/s= rc/gcc-4.7/gcc-4.7-4.7.2<br> <br> is not true. The sources are installed in the current directory, not in /us= r/src, at least for regular users.<br> <br> # vi debian/rules.patch =A0 =A0 =A0# search for the line reads &quot;debian= _patches +=3D gcc-d-lang&quot;, and comment it out<br> <br> there is no such file as debian/rules.patch, only a debian/gdc.preinst, whi= ch has no patch line inside.<br> <br> # ./update-gcc.sh /usr/src/gcc-4.7/gcc-4.7-4.7.<u></u>2/src<br> <br> there is no script update-gcc.sh<br> <br> Finally, the script gcc-setup.sh has as sole help:<br> <br> Usage: ./setup-gcc.sh [OPTION] PATH<br> <br> which is quite cryptic. [OPTION] field should be... optional, however when = called with:<br> <br> ./setup-gcc.sh ~/gcc/gcc-defaults-1.<u></u>120ubuntu8<br> <br> it says:<br> <br> error: invalid option &#39;/home/e_ftotir/gcc/gcc-<u></u>defaults-1.120ubun= tu8&#39;<br> <br> Thanks.<br> </blockquote></div><br><br><br></div><div class=3D"gmail_extra">The only ex= ception to Debian/Ubuntu is that they are multiarch systems, and you need t= o tell vanilla GCC where to find the library/headers.<br><br></div><div cla= ss=3D"gmail_extra"> Other than that, the general installation goes fine.<br></div><div class=3D= "gmail_extra"><br clear=3D"all"><br>-- <br>Iain Buclaw<br><br>*(p &lt; e ? = p++ : p) =3D (c &amp; 0x0f) + &#39;0&#39;; </div></div> --047d7b5dbce2ebfddf04d8be2a89--
Mar 25 2013