Hello all,
Thought I would try installing the most recent version of GPC on my Debian Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
Thanks all -Ken
Ken Linder wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my Debian
^^^^^^^^^^^
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
^^^^^^^
gpc-2.1 is quite old and a lot developements happened after it was released
and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
You skipped most important piece of information: is your system 32-bit? You fetched old 32-bit version of GPC. Vast majority of PC-s now are capable of running 64-bit system and there are definite advantages to doing so. So there is good chance that you have 64-bit system. In the past 64-bit systems had pretty good support for running 32-bit binaries. But new distributions by default are only capable of running 64-bit binaries. For example, Debian 7 on machine that I write this is neiter able to create 32-bit binary nor to run one if I fetch 32-bit binary from other machine. When trying to run binary error message is exactly the one you gave: before normal ELF binary runs kernel has to run appropriate version of 'ld-linux.so'. If 32-bit support is not installed needed version of 'ld-linux.so' is missing.
If you want to stick to old version you need to install support for 32-bit binaries, that is several packages which used to be installed by default, but now are in some obscure part of repository. Sorry, that I do not give you more details, but I do not remember more details. I gave you enough keywords so that you can search net yourself.
Alternatively, you can try newer gpc versions which for which there are 64-bit binaries.
If you want most recent GPC, this is only provided as source:
https://github.com/hebisch/gpc
There may be troubles building on recent Linux. Namely, to build GPC you need to simultaneously build GCC. And GCC needs several files that should be installed on your machine. Recently Linux distributions changed locations of those files so that old gcc can not find them and build fails. I have a patch to older gcc so that it (and hence also GPC) can build on resonably new distribution that I run. I do not remember if the patch is included in Github repo. Also, the patch was tested only on one system and other distribution can break GPC in different way.
On 12.06.19 16:04, Waldek Hebisch wrote:
Ken Linder wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my Debian
^^^^^^^^^^^
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
^^^^^^^
gpc-2.1 is quite old and a lot developements happened after it was released
and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
You skipped most important piece of information: is your system 32-bit? You fetched old 32-bit version of GPC. Vast majority of PC-s now are capable of running 64-bit system and there are definite advantages to doing so. So there is good chance that you have 64-bit system. In the past 64-bit systems had pretty good support for running 32-bit binaries. But new distributions by default are only capable of running 64-bit binaries. For example, Debian 7 on machine that I write this is neiter able to create 32-bit binary nor to run one if I fetch 32-bit binary from other machine. When trying to run binary error message is exactly the one you gave: before normal ELF binary runs kernel has to run appropriate version of 'ld-linux.so'. If 32-bit support is not installed needed version of 'ld-linux.so' is missing.
If you want to stick to old version you need to install support for 32-bit binaries, that is several packages which used to be installed by default, but now are in some obscure part of repository. Sorry, that I do not give you more details, but I do not remember more details. I gave you enough keywords so that you can search net yourself.
see https://wiki.debian.org/Multiarch/HOWTO, then you can install 32bit packages using apt install libc6:i386 ...
Thanks Matthias & Waldek
My OS and machine are strictly 64 bit. I really don't want to mix architectures. I benchmarked a 32 bit Debian install against a 64 bit Debian install and the 64 bit version was significantly faster for my particular hardware mix. CPU is a little AMD C-70 APU.
Maybe I missed something. Had no idea the version of the binary I downloaded was the 32 bit. AH well. Apparently there are no 64 bit binary installs on the GPC website. Doesn't surprise me. That site hasn't been updated in a long time. Would love to give it a face lift, let people know that GPC isn't completely dead.
I wanted to start getting involved in GPC again by simply installing the most recent binary from the website and NOT do a complete build. Ah well!
I saw your repo on github, Waldek. I haven't built GPC from source in over 10 years! I incorrectly thought installing the binary from the website would be easier. Ah well!
Over the next few days I will try to build the source and perhaps see just how confused I can make myself!
Thanks again -Ken
On Wed, Jun 12, 2019 at 9:21 AM Matthias Klose doko@debian.org wrote:
On 12.06.19 16:04, Waldek Hebisch wrote:
Ken Linder wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my
Debian
^^^^^^^^^^^
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
^^^^^^^
gpc-2.1 is quite old and a lot developements happened after it was released
and expanded it as specified here:
https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC
compiler.
I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully
installed
the 2.1 compiler on Debian Stretch? If so, was there something
additional
that needs to be done?
You skipped most important piece of information: is your system 32-bit? You fetched old 32-bit version of GPC. Vast majority of PC-s now are capable of running 64-bit system and there are definite advantages to doing so. So there is good chance that you have 64-bit system. In the past 64-bit systems had pretty good support for running 32-bit binaries. But new distributions by default are only capable of running 64-bit binaries. For example, Debian 7 on machine that I write this is neiter able to create 32-bit binary nor to run one if I fetch 32-bit binary from other machine. When trying to run binary error message is exactly the one you gave: before normal ELF binary runs kernel has to run appropriate version of 'ld-linux.so'. If 32-bit support is not installed needed version of 'ld-linux.so' is missing.
If you want to stick to old version you need to install support for 32-bit binaries, that is several packages which used to be installed by default, but now are in some obscure part of repository. Sorry, that I do not give you more details, but I do not remember more details. I gave you enough keywords so that you can search net yourself.
see https://wiki.debian.org/Multiarch/HOWTO, then you can install 32bit packages using apt install libc6:i386 ...
Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc
This should work for you; https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4/+files/gpc-3.4_20070904...
Install with gdebi.
Regards, Peter B
Thanks Peter!
After quite a lot of tweaking I was able to get to phase 2 of the building process with the code and notes from Waldek's GitHub repo. Still having problems, mostly because I am using GCC 6.3.0 to build the older GCC and GPC source files. There are some other issues with the older GCC's .info files that I corrected.
I just downloaded your gpc-3.4 .deb file. You say to use gdebi, should apt or dpkg work also? My Linux machine is headless.
-Ken
On Wed, Jun 19, 2019 at 10:50 AM Peter peter@pblackman.plus.com wrote:
This should work for you;
https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4/+files/gpc-3.4_20070904...
Install with gdebi.
Regards, Peter B
Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc
On 20/06/2019 18:23, Ken Linder wrote:
Thanks Peter!
After quite a lot of tweaking I was able to get to phase 2 of the building process with the code and notes from Waldek's GitHub repo. Still having problems, mostly because I am using GCC 6.3.0 to build the older GCC and GPC source files. There are some other issues with the older GCC's .info files that I corrected.
I just downloaded your gpc-3.4 .deb file. You say to use gdebi, should apt or dpkg work also? My Linux machine is headless.
-Ken
On Wed, Jun 19, 2019 at 10:50 AM Peter <peter@pblackman.plus.com mailto:peter@pblackman.plus.com> wrote:
This should work for you; https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4/+files/gpc-3.4_20070904-107v_amd64.deb Install with gdebi. Regards, Peter B _______________________________________________ Gpc mailing list Gpc@gnu.de <mailto:Gpc@gnu.de> https://www.g-n-u.de/mailman/listinfo/gpc
apt or dpkg should workfine. Its a standard .deb file. I just usually use gdebi on my desktop to install standalone deb files.
I regularly run GPC 64 bit on linux. I seem to recall it took a bit of fun to get it to work. There might be some notes in the Pascal-P6 project regarding that:
https://sourceforge.net/projects/pascal-p6/
I used a stock 64 bit built (I think the African chief built).
Scott Franco
--------- Original Message --------- Subject: Re: Installing on Debian Stretch? From: "Ken Linder" kc7rad@gmail.com Date: 6/12/19 1:36 pm To: gpc@gnu.de
Thanks Matthias & Waldek My OS and machine are strictly 64 bit. I really don't want to mix architectures. I benchmarked a 32 bit Debian install against a 64 bit Debian install and the 64 bit version was significantly faster for my particular hardware mix. CPU is a little AMD C-70 APU.
Maybe I missed something. Had no idea the version of the binary I downloaded was the 32 bit. AH well. Apparently there are no 64 bit binary installs on the GPC website. Doesn't surprise me. That site hasn't been updated in a long time. Would love to give it a face lift, let people know that GPC isn't completely dead.
I wanted to start getting involved in GPC again by simply installing the most recent binary from the website and NOT do a complete build. Ah well!
I saw your repo on github, Waldek. I haven't built GPC from source in over 10 years! I incorrectly thought installing the binary from the website would be easier. Ah well!
Over the next few days I will try to build the source and perhaps see just how confused I can make myself!
Thanks again -Ken
On Wed, Jun 12, 2019 at 9:21 AM Matthias Klose doko@debian.org wrote: On 12.06.19 16:04, Waldek Hebisch wrote:
Ken Linder wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my Debian
^^^^^^^^^^^
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
^^^^^^^
gpc-2.1 is quite old and a lot developements happened after it was released
and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
You skipped most important piece of information: is your system 32-bit? You fetched old 32-bit version of GPC. Vast majority of PC-s now are capable of running 64-bit system and there are definite advantages to doing so. So there is good chance that you have 64-bit system. In the past 64-bit systems had pretty good support for running 32-bit binaries. But new distributions by default are only capable of running 64-bit binaries. For example, Debian 7 on machine that I write this is neiter able to create 32-bit binary nor to run one if I fetch 32-bit binary from other machine. When trying to run binary error message is exactly the one you gave: before normal ELF binary runs kernel has to run appropriate version of 'ld-linux.so'. If 32-bit support is not installed needed version of 'ld-linux.so' is missing.
If you want to stick to old version you need to install support for 32-bit binaries, that is several packages which used to be installed by default, but now are in some obscure part of repository. Sorry, that I do not give you more details, but I do not remember more details. I gave you enough keywords so that you can search net yourself.
see https://wiki.debian.org/Multiarch/HOWTO, then you can install 32bit packages using apt install libc6:i386 ...
_______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc _______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc
If you should still need this, I found my notes to get the 64 bit GPC working online:
https://sourceforge.net/p/pascal-p6/discussion/general/thread/e712a641/
Good luck.
Scott Franco
--------- Original Message --------- Subject: RE: Re: Installing on Debian Stretch? From: "scott andrew franco" samiam@moorecad.com Date: 6/24/19 1:00 pm To: "Ken Linder" kc7rad@gmail.com, gpc@gnu.de
I regularly run GPC 64 bit on linux. I seem to recall it took a bit of fun to get it to work. There might be some notes in the Pascal-P6 project regarding that:
https://sourceforge.net/projects/pascal-p6/
I used a stock 64 bit built (I think the African chief built).
Scott Franco
--------- Original Message --------- Subject: Re: Installing on Debian Stretch? From: "Ken Linder" kc7rad@gmail.com Date: 6/12/19 1:36 pm To: gpc@gnu.de
Thanks Matthias & Waldek My OS and machine are strictly 64 bit. I really don't want to mix architectures. I benchmarked a 32 bit Debian install against a 64 bit Debian install and the 64 bit version was significantly faster for my particular hardware mix. CPU is a little AMD C-70 APU.
Maybe I missed something. Had no idea the version of the binary I downloaded was the 32 bit. AH well. Apparently there are no 64 bit binary installs on the GPC website. Doesn't surprise me. That site hasn't been updated in a long time. Would love to give it a face lift, let people know that GPC isn't completely dead.
I wanted to start getting involved in GPC again by simply installing the most recent binary from the website and NOT do a complete build. Ah well!
I saw your repo on github, Waldek. I haven't built GPC from source in over 10 years! I incorrectly thought installing the binary from the website would be easier. Ah well!
Over the next few days I will try to build the source and perhaps see just how confused I can make myself!
Thanks again -Ken
On Wed, Jun 12, 2019 at 9:21 AM Matthias Klose doko@debian.org wrote: On 12.06.19 16:04, Waldek Hebisch wrote:
Ken Linder wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my Debian
^^^^^^^^^^^
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
^^^^^^^
gpc-2.1 is quite old and a lot developements happened after it was released
and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
You skipped most important piece of information: is your system 32-bit? You fetched old 32-bit version of GPC. Vast majority of PC-s now are capable of running 64-bit system and there are definite advantages to doing so. So there is good chance that you have 64-bit system. In the past 64-bit systems had pretty good support for running 32-bit binaries. But new distributions by default are only capable of running 64-bit binaries. For example, Debian 7 on machine that I write this is neiter able to create 32-bit binary nor to run one if I fetch 32-bit binary from other machine. When trying to run binary error message is exactly the one you gave: before normal ELF binary runs kernel has to run appropriate version of 'ld-linux.so'. If 32-bit support is not installed needed version of 'ld-linux.so' is missing.
If you want to stick to old version you need to install support for 32-bit binaries, that is several packages which used to be installed by default, but now are in some obscure part of repository. Sorry, that I do not give you more details, but I do not remember more details. I gave you enough keywords so that you can search net yourself.
see https://wiki.debian.org/Multiarch/HOWTO, then you can install 32bit packages using apt install libc6:i386 ...
_______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc _______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc
Scott Franco wrote:
If you should still need this, I found my notes to get the 64 bit GPC worki= ng online:
Little remark concerning your notes: - you can have different versions of gcc installed without a conflict, for example you may simultaneously use gcc-3.4.6 and gcc-4.9.2. Just make sure that gcc command is copy (or link) to the one you want as a default. If you install gpc outside of /usr/bin, then you will get two different gcc commands in different directories and PATH will decide which one is in use (you may delete gcc command comming from gpc to avoid confusion). In particular when you install gpc based on gcc-3.4.6 you get also a copy of gcc-3.4.6 and this copy can be used simultaneously with newer gcc. - when you want (resonably) old Linux distribution, then you may run it in chroot-ed directory on _new_ kernel. For graphic programs there is little trickery to correctly set X permissions, for command line programs like gpc this is easier.
I figured something like that, but still neat that it works.
S.
--------- Original Message --------- Subject: Re: Re: Installing on Debian Stretch? From: "Waldek Hebisch" hebisch@math.uni.wroc.pl Date: 6/24/19 2:57 pm To: gpc@gnu.de
Scott Franco wrote:
If you should still need this, I found my notes to get the 64 bit GPC worki= ng online:
Little remark concerning your notes: - you can have different versions of gcc installed without a conflict, for example you may simultaneously use gcc-3.4.6 and gcc-4.9.2. Just make sure that gcc command is copy (or link) to the one you want as a default. If you install gpc outside of /usr/bin, then you will get two different gcc commands in different directories and PATH will decide which one is in use (you may delete gcc command comming from gpc to avoid confusion). In particular when you install gpc based on gcc-3.4.6 you get also a copy of gcc-3.4.6 and this copy can be used simultaneously with newer gcc. - when you want (resonably) old Linux distribution, then you may run it in chroot-ed directory on _new_ kernel. For graphic programs there is little trickery to correctly set X permissions, for command line programs like gpc this is easier.
-- Waldek Hebisch
_______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc
I guess we should start by figuring out what it is that doesn't exist. Let's start with the following command:
file /usr/local/bin/gpc
On Wed, Jun 12, 2019, 6:20 AM Ken Linder kc7rad@gmail.com wrote:
Hello all,
Thought I would try installing the most recent version of GPC on my Debian Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz and expanded it as specified here: https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler. I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed the 2.1 compiler on Debian Stretch? If so, was there something additional that needs to be done?
Thanks all -Ken _______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc