Tag Info

New answers tagged

1

You'll have a hard time building such an old version of gcc on a modern system... The errors you've copied are from texinfo, which is no longer compatible with the documentation included in gcc 2.95. You can try installing binaries straight from http://snapshot.debian.org/package/gcc-2.95/2.95.4.ds15-27/; installing cpp-2.95 and gcc-2.95 from there will ...


0

You will need to compile the older version of gcc from source and give it a different destination directory with the prefix option. ./configure --prefix=/usr/local/gcc I think the gcc configure will allow you to use your existing /etc. ./configure --prefix=/usr/local/gcc --sysconfdir=/etc


0

As others mentioned, gcc uses cc1. The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format. The current spec file can viewed with: gcc -dumpspecs The relevant section seems to be: *cc1_options: %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} ...


1

There is something wrong with your mirrorlist. The fact that you got a 404 must mean that your internet connection is fine (assuming your DNS is configured correctly) GCC comes from the base repo, so check the contents of /etc/yum.repos.d/CentOS-Base.repo and look at the [base] entry. For example on my CentOS 6.6 system I have: [base] ...


0

To remove the extension use something like this- echo $GEDIT_CURRENT_DOCUMENT_NAME | sed 's/\..*$//'


0

Remove extension: Try to use the ${varname%.ext} expansion of sh/bash/zsh. For example like this: #!/bin/sh # ... file_name_with_out_ext="${GEDIT_CURRENT_DOCUMENT_NAME%.c}" (but beware that this will only remove .c extionsions and leave .h or .cpp, or any other extensions alone) Test if file exists: You can test if a file exists (for example a ...


3

I'm not sure what sort of install you did, but if you tell it you want a software development you should get gcc I think. After the fact if you want a lot of those common tools you can do yum groupinstall 'C Development Tools and Libraries'



Top 50 recent answers are included