Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Tue, 8 Dec 2015 00:21:28 +0100, Mattias Gaertnerwrote: >Are you sure you installed the right compiler? >i386 <> x86_64, 32 vs 64bit. Well I looked at the download page: http://www.freepascal.org/download.var and since my laptop has an Intel CPU I chose the one that said Intel/i386... But now I see that further down there is a section AMD64/x86_64, which I did not use since it said AMD. But apparently that is the one for 64 bit. Sigh! So how do I get rid of the erroneous fpc? I have no idea at all what the install.sh script did so I can revert it Is there an uninstall way? Here is where apt-get would have been good since it has an uninstall function. But, should not the 32 bit compiler work also in my Linux Mint 17 machine? Even though it has an Intel 64 bit CPU... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] shell script with root rights and automatic password
On Monday 07 December 2015 08:38:28 you wrote: > Rainer Stratmann wrote: > > What works is an entry in the sudoers file. > > And then the program/script you can call with root rights. > > I hope this is for something that will only ever run on your own > machine, because unless you take a lot of precautions (hardcoding a set > of *absolute* paths to scripts that may be executed this way like > Michael mentioned can help, but only if you can guarantee none of these > locations can be overwritten, symlinked to somewhere else or substituted > through mounting), this is a security disaster waiting to happen. I am aware of some security stuff. And I asked myself often to do more security. For example disabling ssh on the machine. And some more. But in some cases I need root acess. The location is secret and is deleted after the call. That's all I can do so far. Only this application runs on the machine. With 'setuid binary' I am not familiar. > A lot of security holes in various Unix-like OSes happen through abuse > of setuid helpers or helper programs executed as root. If you really > need to do something as root, having a small setuid binary that can only > do this one thing is much safer than invoking a general purpose shell > that can do anything. You can find a very basic overview of some issues > at > https://developer.apple.com/library/mac/documentation/OpenSource/Conceptual > /ShellScripting/ShellScriptSecurity/ShellScriptSecurity.html . > > If everything mentioned there isn't completely obvious to you, please do > not distribute any program that invokes shell scripts as root before you > familiarise yourself very thoroughly with security at the Unix/shell > level. And even if it is, ask yourself whether there is no safer way to > achieve the same results. > > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
I have just created a VMWare virtual machine on my Win7 PC and installed Linux Mint 17.2 Cinnamon in order to do some pascal development. I really do not want to build either fpc or lazarus myself, I just want to use the released versions. So is there a release 3.0 version available for Linux Mint 17 via apt-get? And if so what would be the correct command to get it? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglundwrote: >So is there a release 3.0 version available for Linux Mint 17 via >apt-get? >And if so what would be the correct command to get it? I tried this: sudo apt-get install fpc lazarus It gathered info for a while, then asked if I wanted to continue. When I looked at all the stuff it had printed on screen I found it was about to install fpc compiler 2.6.2 and lazarus 1.0.10 So I aborted. Is it so bad that new releases are no longer posted with current Linux distributions? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
Am 07.12.2015 20:18 schrieb "Bo Berglund": > > On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglund > wrote: > > >So is there a release 3.0 version available for Linux Mint 17 via > >apt-get? > >And if so what would be the correct command to get it? > > I tried this: > sudo apt-get install fpc lazarus > It gathered info for a while, then asked if I wanted to continue. > When I looked at all the stuff it had printed on screen I found it was > about to install fpc compiler 2.6.2 and lazarus 1.0.10 > So I aborted. > > Is it so bad that new releases are no longer posted with current Linux > distributions? The distro packages are not provided by us, but by the distributions themselves and if there's no maintainer for the packages won't be updated to newer releases... Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 7 Dec 2015, Bo Berglund wrote: I have just created a VMWare virtual machine on my Win7 PC and installed Linux Mint 17.2 Cinnamon in order to do some pascal development. I really do not want to build either fpc or lazarus myself, I just want to use the released versions. So is there a release 3.0 version available for Linux Mint 17 via apt-get? And if so what would be the correct command to get it? No, none officially exists. There is a very old one, but it is not maintained. I believe fpc 3.0 is in debian experimental, but it would be a very bad idea to use that in linux mint. There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself. As it happens, I am currently writing an article on how to install lazarus on Linux mint 17.3 from zero. It does describe compiling lazarus. I can send it to you when it is finished. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneytwrote: >There is a command-line installer on the ftp site for fpc, after that you >should build lazarus itself. > >As it happens, I am currently writing an article on how to install lazarus on >Linux mint 17.3 from zero. >It does describe compiling lazarus. > >I can send it to you when it is finished. Thanks, please do! I bit the bullet and did the following, hopefully it is not way off like my experiments on a Raspberry Pi2 were: 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var 2) Downloaded the "everything" file ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar 3) Extracted its contents to the Download dir 4) Then I entered the directory and issued the command: sudo sh install.sh 5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago. 6) Then I just replied Y to most of the questions and it installed apparently just fine. At least it responds to my fpc -h command... Now I have to deal with Lazarus, but that is another list/forum... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 21:52:35 +0100 Bo Berglundwrote: > On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt > wrote: >[...] > 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var > > 2) Downloaded the "everything" file > ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar > > 3) Extracted its contents to the Download dir > > 4) Then I entered the directory and issued the command: > sudo sh install.sh > > 5) During installation I was asked to select target and entered > /usr/local as I was told in another case some time ago. > > 6) Then I just replied Y to most of the questions and it installed > apparently just fine. > At least it responds to my fpc -h command... That is the right way. As an alternative you can install the FPC 2.6.4 deb (e.g. from the Lazarus site), then download the FPC 3.0.0 sources and 'make install' them. > Now I have to deal with Lazarus, but that is another list/forum... Lazarus needs libgtk2.0-dev, which should automatically install libgtk2.0-common. Lazarus 1.6RC1 will be available soon and it provides deb packages for FPC 3.0.0 and Lazarus. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On 2015-12-07 20:52, Bo Berglund wrote: > > 5) During installation I was asked to select target and entered > /usr/local as I was told in another case some time ago. The nice think of the command line installer, is that you can install to your $HOME directory as well. You do not require root permissions. > > Now I have to deal with Lazarus, but that is another list/forum... Use Git or SubVersion to checkout whatever version you want. On the Github mirror, via the website, you can download a ZIP archive of a branch too. The simply do: make ide or make bigide depending on how much you want included by default into Lazarus. Once you have a Lazarus executable, then you can build a new lazarus from inside Lazarus (eg: when installing new components etc). Been doing this process for 5 years and it never failed me. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On 2015-12-07 19:27, Michael Van Canneyt wrote: > There is a command-line installer on the ftp site for fpc, after that > you should build lazarus itself. I've used this method for years under Linux, FreeBSD and Windows. It always works, and is really simple and quick. I highly recommend this installation option to everybody. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 7 Dec 2015, Bo Berglund wrote: On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneytwrote: There is a command-line installer on the ftp site for fpc, after that you should build lazarus itself. As it happens, I am currently writing an article on how to install lazarus on Linux mint 17.3 from zero. It does describe compiling lazarus. I can send it to you when it is finished. Thanks, please do! I bit the bullet and did the following, hopefully it is not way off like my experiments on a Raspberry Pi2 were: 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var 2) Downloaded the "everything" file ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar 3) Extracted its contents to the Download dir 4) Then I entered the directory and issued the command: sudo sh install.sh 5) During installation I was asked to select target and entered /usr/local as I was told in another case some time ago. 6) Then I just replied Y to most of the questions and it installed apparently just fine. At least it responds to my fpc -h command... This is the way to go. You don't need my article :-) Now I have to deal with Lazarus, but that is another list/forum... That should be pretty straightforward as well. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertnerwrote: >> Now I have to deal with Lazarus, but that is another list/forum... > >Lazarus needs libgtk2.0-dev, which should automatically install >libgtk2.0-common. I looked into my Raspberry Pi2 install notes and found these dependencies for Lazarus: Get additional packages: apt-get update apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev Are most of these superfluous? Is it enough with libgtk2.0-dev? Then concerning Lazarus itself: Get the Lazarus sources: svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus I found that I really would like to run on some form of fairly stable source, so what would be the correct tag to use in place of trunk? >Lazarus 1.6RC1 will be available soon and it provides deb >packages for FPC 3.0.0 and Lazarus. > Will there be a tar package like for fpc or should I go for an svn checkout? Is there an RC tag for Lazarus? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 23:15:50 +0100 Bo Berglundwrote: > On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertner > wrote: > > >> Now I have to deal with Lazarus, but that is another list/forum... > > > >Lazarus needs libgtk2.0-dev, which should automatically install > >libgtk2.0-common. > > I looked into my Raspberry Pi2 install notes and found these > dependencies for Lazarus: > > Get additional packages: > > apt-get update > apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev > gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev > libpango1.0-dev > > Are most of these superfluous? Is it enough with libgtk2.0-dev? I have not tried on Linux-Mint. Can you test? If building Lazarus fails with a linker error you will see what lib is missing. > Will there be a tar package like for fpc No. Building Lazarus is easy (make all). The tricky part is helping the user to install the required libraries. If someone provides a script that checks the common distros and maintains the script I would build such a tar. > or should I go for an svn checkout? I recommend that. This makes upgrading easy. > Is there an RC tag for Lazarus? Many. For example: http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1 Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
Michael Van Canneyt wrote: I believe fpc 3.0 is in debian experimental, but it would be a very bad idea to use that in linux mint. If you limit yourself to just using FPC from Debian experimental, I don't think there's much that can go wrong. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertnerwrote: >> apt-get update >> apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev >> gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev >> libpango1.0-dev >> >> Are most of these superfluous? Is it enough with libgtk2.0-dev? > >I have not tried on Linux-Mint. >Can you test? I did as follows: sudo apt-get install libgtk2.0-dev It pulled no less than 73 different packages > >> Is there an RC tag for Lazarus? > >Many. For example: >http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1 > Thanks, I will go with that tag. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 23:47:36 +0100, Bo Berglundwrote: >On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner > wrote: > >>> apt-get update >>> apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev >>> gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev >>> libpango1.0-dev >>> >>> Are most of these superfluous? Is it enough with libgtk2.0-dev? >> >>I have not tried on Linux-Mint. >>Can you test? > >I did as follows: >sudo apt-get install libgtk2.0-dev > >It pulled no less than 73 different packages > >> >>> Is there an RC tag for Lazarus? >> >>Many. For example: >>http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1 >> >Thanks, >I will go with that tag. I checked out the tag above and compiled. Unfortunately make bigide took 18s to end in an error: Target OS: Linux for i386 Compiling lazres.pp Linking ./lazres Warning: "crti.o" not found, this will probably cause a linking failure Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o /usr/bin/ld: cannot find -ldl /usr/bin/ld: cannot find -lc Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted So what is causing this? A missing library perhaps? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 23:36:17 +0100 Jonas Maebewrote: > Michael Van Canneyt wrote: > > I believe fpc 3.0 is in debian experimental, but it would be a very bad > > idea to use that in linux mint. > > If you limit yourself to just using FPC from Debian experimental, I > don't think there's much that can go wrong. That's probably true, but you are mixing a Debian repository with Ubuntu/Linux Mint/etc repository, which gives warnings and anyone you are asking for help will tell you that it is a bad idea. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 23:47:36 +0100 Bo Berglundwrote: >[...] > >I have not tried on Linux-Mint. > >Can you test? > > I did as follows: > sudo apt-get install libgtk2.0-dev > > It pulled no less than 73 different packages Debian is great at splitting packages into smaller packages. Does Lazarus link with those packages? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Mon, 07 Dec 2015 23:56:56 +0100 Bo Berglundwrote: >[...] > Target OS: Linux for i386 > Compiling lazres.pp > Linking ./lazres > Warning: "crti.o" not found, this will probably cause a linking > failure > Warning: "crtn.o" not found, this will probably cause a linking > failure > /usr/bin/ld: warning: ./link.res contains output sections; did you > forget -T? > /usr/bin/ld: skipping incompatible > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o > /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o Are you sure you installed the right compiler? i386 <> x86_64, 32 vs 64bit. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
On Tue, 8 Dec 2015 00:21:28 +0100 Mattias Gaertnerwrote: > On Mon, 07 Dec 2015 23:56:56 +0100 > Bo Berglund wrote: > > >[...] > > Target OS: Linux for i386 > > Compiling lazres.pp > > Linking ./lazres > > Warning: "crti.o" not found, this will probably cause a linking > > failure > > Warning: "crtn.o" not found, this will probably cause a linking > > failure > > /usr/bin/ld: warning: ./link.res contains output sections; did you > > forget -T? > > /usr/bin/ld: skipping incompatible > > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for > > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o > > /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o > > Are you sure you installed the right compiler? > i386 <> x86_64, 32 vs 64bit. I tried Linux Mint 17.3 64bit. After installing fpc x86_64 tar and libgtk2.0-dev, Lazarus builds fine. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?
OR You can goto http://www.getlazarus.org/setup ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal