EhLib3.0安装不上去,出现错误File not found:'DBSumLst.dcu',但是控件包中没有DBSumLst.dcu这个文件,怎样解决这个问题?

解决方案 »

  1.   

    在tools->Environment Options->library->library Path 指定.dcu和源程序的路径
    如果不行先把机器上ehlib相关的dcu文件于掉,再安装
      

  2.   

    1. 把Common目录下的所有文件拷到Delphi[X]目录下,如Delphi6
    2. 打开 EhLib60.dpk ,‘Compile’
    3. 打开 DclEhLib60.dpk ,‘Install’
    4. 在‘Library Path’中加上 ..\Delphi6 这个目录。readme文件中的内容:
    Uninstall previous or evaluation version of EhLib (Old version) from Delphi 
    IDE. Remove or copy to other directory files of old version to prevent 
    crossing old and new version of EhLib (Including EhLib.bpl, EhLib.dcp or 
    EhLibXX.bpl, EhLibXX.dcp files). 
    卸载先前版本的ehlibxx以及把(EhLib.bpl, EhLib.dcp or 
    EhLibXX.bpl, EhLibXX.dcp files)删除或者拷贝到其他目录Create directory from which you will install EhLib library 
    ('EhLib directory') (for example, C:\Delphi[X]\EhLib).
    创建你要安装ehlib库的目录(如: C:\Delphi[X]\EhLib)Copy files from Common and Delphi[X] directories of the EhLib archive
    to 'EhLib directory'.
    把 common 和 delphi[X]拷贝到ehlib文件夹Use "File\Open..." menu item of Delphi IDE to open the runtime package - 
    EhLibXX.Dpk.
    使用"file\open.."打开运行时包EhLibXX.Dpk.In "Package..." window click "Compile" button to compile the package.
    在 "Package"点击Compile编译包文件By default Delphi (5, 6 and 7) place compiled EhLibXX.BPL file to the 
    <Delphi path>\Projects\Bpl directory and this directory already present 
    in the search PATH. But if you overwrite default BPL directory then you need
    put compiled EhLibXX.BPL file into directory that is accessible 
    through the search PATH (
    默认情况下Delphi (5, 6 and 7) 会把编译过的包文件放在<Delphi path>\Projects\Bpl 目录下,而且这个目录已经在搜索目录中了;但是如果你要覆盖默认bpl目录,你需要把编译过的EhLibXX.BPL 文件放在通过搜索可能存储的目录里,i.e. DOS "PATH" environment variable; 例如: Windows\System directory).Add, (if needed) 'EhLib directory' in Tools->Environment Options->Library->
    Library Path.*****************这一句很关键
    After compiling run-time package you must install design-time
    package DclEhLibXX.BPL into the IDE.
    然后编译运行期包,你必须安装设计期包DclEhLibXX.BPL 到IDE;Use "File\Open..." menu item to open design-time package DclEhLibXX.Dpk.
    In "Package..." window click "Compile" button to compile the package
    and then click "Install" button to register EhLib components on
    the component palette. 
    用"File\Open..." 菜单项打开设计期包DclEhLibXX.Dpk 并且单击Compile,接着单击Install注册组件EhLib 到组建面板当中EhLib components have to appear on 'EhLib' page of components palette.
    成功安装!
    祝贺你成功!