Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-02

Configuration not quite right

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leslie Turriff

Hi,
I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, using the version in the distribution repository (which I presumed would be properly configured). Lazarus is v1.0.4 and Free Pascal is "version 2.6.0 [2012/10/17] for x86_64".
The first time I opened Lazarus it populated with a predefined sample program (how do I turn that off?). I made a few cosmetic changes to the source code (blank lines added or removed) to be sure Lazarus saw differences, then pressed the Run button.
The messages window reported 'Project "Project1" successfully built', then an error message window popped up, saying 'No program file "/tmp/project1" found.'
I looked through Tools=>Options, looking for a mis-set path, but so far I can't see anything helpful.
Any suggestions?

Leslie

Reply by email

Mattias Gaertner
to Leslie Turriff
Show quoted text 8 lines
Hi, I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, using the version in the distribution repository (which I presumed would be properly configured). Lazarus is v1.0.4 and Free Pascal is "version 2.6.0 [2012/10/17] for x86_64". The first time I opened Lazarus it populated with a predefined sample program (how do I turn that off?).

By default the IDE opens the last project you worked on. On first start it starts with a new "Application" project.
See Tools / Environment / Files / Open last project at start

Show quoted text 6 lines
I made a few cosmetic changes to the source code (blank lines added or removed) to be sure Lazarus saw differences, then pressed the Run button. The messages window reported 'Project "Project1" successfully built', then an error message window popped up, saying 'No program file "/tmp/project1" found.'

Strange.
Does the file /tmp/project1 exist?
Please right click on the messages window and click on "Save all messages to a file". Can you post the messages?

I looked through Tools=>Options, looking for a mis-set path, but so far I can't see anything helpful. Any suggestions?

Mattias

Reply by email

Milan Baša
to Leslie Turriff: I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've…

D?a 25.02.2013 20:40, Leslie Turriff wrote / nap?sal(a):

Show quoted text 25 lines
Hi, I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, using the version in the distribution repository (which I presumed would be properly configured). Lazarus is v1.0.4 and Free Pascal is "version 2.6.0 [2012/10/17] for x86_64". The first time I opened Lazarus it populated with a predefined sample program (how do I turn that off?). I made a few cosmetic changes to the source code (blank lines added or removed) to be sure Lazarus saw differences, then pressed the Run button. The messages window reported 'Project "Project1" successfully built', then an error message window popped up, saying 'No program file "/tmp/project1" found.' I looked through Tools=>Options, looking for a mis-set path, but so far I can't see anything helpful. Any suggestions? Leslie -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I think /tmp/project1 does need superuser rights. You do need to change path to ~/tmp/project1 or to run lazarus as a superuser. Milan

Reply by email

Mattias Gaertner
to Milan Baša
Show quoted text 20 lines
D?a 25.02.2013 20:40, Leslie Turriff wrote / nap?sal(a): > Hi, > I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. > I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, > using the version in the distribution repository (which I presumed would be > properly configured). Lazarus is v1.0.4 and Free Pascal is "version 2.6.0 > [2012/10/17] for x86_64". > The first time I opened Lazarus it populated with a predefined sample program > (how do I turn that off?). I made a few cosmetic changes to the source code > (blank lines added or removed) to be sure Lazarus saw differences, then > pressed the Run button. > The messages window reported 'Project "Project1" successfully built', then an > error message window popped up, saying 'No program file "/tmp/project1" > found.' > I looked through Tools=>Options, looking for a mis-set path, but so far I > can't see anything helpful. > Any suggestions? > > I think /tmp/project1 does need superuser rights.

Under OpenSuSE /tmp is writable for users.

You do need to change path to ~/tmp/project1

Yes, that is an alternative. You have to create the directory.

or to run lazarus as a superuser.

Bad idea.

Mattias

Reply by email

Leslie Turriff
to Mattias Gaertner
Mattias Gaertner wrote 13 lines
On Tue, 26 Feb 2013 16:21:30 +0100 > Milan Ba?a wrote: > D?a 25.02.2013 20:40, Leslie Turriff wrote / nap?sal(a): > > Hi, > > Any suggestions? > > I think /tmp/project1 does need superuser rights. Under OpenSuSE /tmp is writable for users. > You do need to change path to ~/tmp/project1 Yes, that is an alternative. You have to create the directory.

And then, how do I tell Lazarus to use ~/tmp instead of /tmp ?

Reply by email

Mattias Gaertner
to Leslie Turriff
Show quoted text 15 lines
On Tuesday 26 February 2013 09:35:00 Mattias Gaertner wrote: > On Tue, 26 Feb 2013 16:21:30 +0100 >> Milan Ba?a wrote: > > D?a 25.02.2013 20:40, Leslie Turriff wrote / nap?sal(a): > > > Hi, > > > Any suggestions? > > > > I think /tmp/project1 does need superuser rights. > > Under OpenSuSE /tmp is writable for users. > > > You do need to change path to ~/tmp/project1 > > Yes, that is an alternative. You have to create the directory. And then, how do I tell Lazarus to use ~/tmp instead of /tmp ?

Tools / Options / Environment / Files / Directory for building test projects.

Mattias

Reply by email