Solved

File not found: System.pas

Posted on 2003-10-23
13
2,722 Views
Last Modified: 2007-12-19


After I installed and uninstalled some other programs, My Delphi 3,5and 6 start to say (when compiling) File not found: System.pas, I looked at the Library Path under Environment Options ,
nothing changed there and the paths were still there.  I could not figure out how to overcome this problem. Adding path es into Project /Options /Directories and Conditionals/ Search Path is not a solution since this change must be for every opened project...

Thanx in advcance for your kind help...

These are the library Path Under Environment Options

***DELPHI 5***
$(DELPHI)\Lib;$(DELPHI)\Bin;$(DELPHI)\Imports;$(DELPHI)\Projects\Bpl;

***Delphi 3***
C:\Program Files\Borland\Delphi 3\Lib;C:\Program Files\Borland\Delphi 3\Bin;C:\Program Files\Borland\Delphi 3\Imports;
0
Comment
Question by:new_x
  • 5
  • 4
  • 2
  • +2
13 Comments
 
LVL 8

Expert Comment

by:gmayo
Comment Utility
Is the file itself there (as system.pas or system.dcu)?

Geoff M.
0
 
LVL 6

Expert Comment

by:GloomyFriar
Comment Utility
Try to do the next:
Move Delphi3 and Delphi6 Lib directories to somewhere far, that Delphi3&7 did not "see" these directories.
Than be convinced, that there is the system.dcu in ..\Delphi7\Lib.
Try to compile.
0
 
LVL 6

Expert Comment

by:GloomyFriar
Comment Utility
Try to do the next:
Move Delphi3 and Delphi6 Lib directories to somewhere far, that Delphi3&6&7 did not "see" these directories.
Than be convinced, that there is the system.dcu in ..\Delphi7\Lib.
Try to compile.
0
 
LVL 3

Expert Comment

by:JDuncan
Comment Utility
You should have

$(DELPHI)\source\rtl\sys and
$(DELPHI)\source\rtl\win  in the library browsing path in delphi 5

0
 
LVL 1

Author Comment

by:new_x
Comment Utility

Sorry guys for the delay,

JDuncan rtl\sys and rtl\win are already in the browsing path..GMayo and GloomyFriar, the system.pas (which is the unit source) is in the path

$(Delphi)\Source\RTL\SYS

but I could not find system.dcu under Borland\Delphi5 and its subdirectories



0
 
LVL 6

Expert Comment

by:GloomyFriar
Comment Utility
>but I could not find system.dcu under Borland\Delphi5 and its subdirectories
If you have not the system.dcu then it'll be the problem, the system.pas is not enough.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 6

Expert Comment

by:GloomyFriar
Comment Utility
You can try to compile the system.dcu from sources, but I recommend to find the original one.
To compile the system.dcu from sources you will need MAKE.EXE, TASM32.EXE and BRCC32.EXE.
Read details in the beginning ..\source\rtl\makefile.
0
 
LVL 8

Expert Comment

by:gmayo
Comment Utility
Probably best to completely uninstall Delphi and then reinstall it.

Geoff M.
0
 
LVL 1

Author Comment

by:new_x
Comment Utility

May be the final solution as gmayo said, is to rei-install but , I think reinstallation as the worst solution since I have so many third party components installed, in the case of reinstallation all these components must be re-installed too.
0
 
LVL 6

Accepted Solution

by:
GloomyFriar earned 50 total points
Comment Utility
> I have so many third party components installed
It's not a problem. Just save the registry subtree HKEY_CURRENT_USER\Software\Borland\ and after the reinstallation is done add the saved info back to registry.
0
 
LVL 1

Author Comment

by:new_x
Comment Utility
Thanks GloomyFriar I will try your suggestion today...
0
 
LVL 5

Expert Comment

by:Hypoviax
Comment Utility
Do a search using search in windows for the file:

system.pas and system.dcu

If you find it chuck it in the bin directory located under your delphi directory.

Try again and it should work. Otherwise reinstall Delphi and the file will be back.

Reagards,

Hypoviax
0
 
LVL 1

Author Comment

by:new_x
Comment Utility

Sorry guys for the long delay I want to thank you all...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now