Sign in Join

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

Mailing lists / lazarus / 2013-07

Can not install a package

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Haruyuki Fujimaki

Hello,?

I am trying to install a package to 1.0.10 on Linux Mint 15, but have been unable to install it receiving an error massage: "Fatal: Can not find unit <package_name> used by Lazarus. Check if package?<package_name>?is in the dependencies."

The package file is the same one successfully installed on 1.0.6 on Xubuntu 13.04. So the problem seems strange for me. How can I inform Lazarus path of the package??

Fujimaki

Reply by email

Mattias Gaertner
to Haruyuki Fujimaki
Show quoted text 8 lines
Hello,? I am trying to install a package to 1.0.10 on Linux Mint 15, but have been unable to install it receiving an error massage: "Fatal: Can not find unit <package_name> used by Lazarus. Check if package?<package_name>?is in the dependencies." The package file is the same one successfully installed on 1.0.6 on Xubuntu 13.04. So the problem seems strange for me. How can I inform Lazarus path of the package??

If you quoted correctly, then the IDE already knows the package, because it knows that an unit with the name <package_name> is in the package named <package_name>.

Check if you can rebuild the IDE without this package. If that succeeds then either the package has a bug or you have some old files on your disk, which need to be deleted before building. Have you tried a clean build? Tools / Configure Build Lazarus / Clean All?

Mattias

Reply by email

Haruyuki Fujimaki
to Mattias Gaertner

Mattias,

According to?your advice, I?tried a clean build.?Unfortunately, I got same error. So I created new package and added same components. And I added "$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)" and "$(LazarusDir)/components/lazutils/lib/i386-linux" to "Other unit files" in package options. I also added lclbase to Required Package of the package. Then, clean?build was successful and the package has been installed. Thank you for your advice.

Fujimaki

Show quoted text 28 lines
> I am trying to install a package to 1.0.10 on Linux Mint 15, but have been unable to install it receiving an error massage: > "Fatal: Can not find unit <package_name> used by Lazarus. Check if package?<package_name>?is in the dependencies." > > > The package file is the same one successfully installed on 1.0.6 on Xubuntu 13.04. So the problem seems strange for me. > How can I inform Lazarus path of the package?? If you quoted correctly, then the IDE already knows the package, because it knows that an unit with the name <package_name> is in the package named <package_name>. Check if you can rebuild the IDE without this package. If that succeeds then either the package has a bug or you have some old files on your disk, which need to be deleted before building. Have you tried a clean build? Tools / Configure Build Lazarus / Clean All? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Haruyuki Fujimaki
Show quoted text 5 lines
Mattias, According to?your advice, I?tried a clean build.?Unfortunately, I got same error. So I created new package and added same components. And I added "$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)" and "$(LazarusDir)/components/lazutils/lib/i386-linux" to "Other unit files" in package options.

Please remove these paths. They are used automatically by the IDE. Why did you add them?

I also added lclbase to Required Package of the package.

Always use LCL instead of LCLBase.

Then, clean?build was successful and the package has been installed. Thank you for your advice.

Mattias

Reply by email

Haruyuki Fujimaki
to Mattias Gaertner
Show quoted text 8 lines
>? According to?your advice, I?tried a clean build.?Unfortunately, I got same error. So I created new package and added same components. >? And I added "$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)" and "$(LazarusDir)/components/lazutils/lib/i386-linux" to "Other unit files" in package options. Please remove these paths. They are used automatically by the IDE. Why did you add them?
Because without those paths, the IDE shows error messages :
"<unitname>.pas(6,21) Fatal: Can not find unit Forms used by?<unitname>. Check if package LCLBase is in the dependencies."
"forms.pp(41,44) Fatal: Can not find AvgLvlTree used by Forms, ppu=../components/lazutils/lib/i386-linux/avglvltree.ppu, package LazUtils"
>? I also added lclbase to Required Package of the package. Always use LCL instead of LCLBase.

OK, I ?will. Thank you.

Fujimaki

Reply by email

Mattias Gaertner
to Haruyuki Fujimaki
Show quoted text 12 lines
>>? According to?your advice, I?tried a clean build.?Unfortunately, I got same > error. So I created new package and added same components. >>? And I added "$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)" > and "$(LazarusDir)/components/lazutils/lib/i386-linux" to "Other > unit files" in package options. > > Please remove these paths. They are used automatically by the IDE. > Why did you add them? Because without those paths, the IDE shows error messages : "<unitname>.pas(6,21) Fatal: Can not find unit Forms used by?<unitname>. Check if package LCLBase is in the dependencies."

Unit forms in package LCLBase. Using LCLBase will automatically add the needed search paths. But the LCLBase is an abstract package that requires the LCL.
The package LCL will add further search paths, linker options and defines.

Show quoted text 7 lines
"forms.pp(41,44) Fatal: Can not find AvgLvlTree used by Forms, ppu=../components/lazutils/lib/i386-linux/avglvltree.ppu, package LazUtils" >>? I also added lclbase to Required Package of the package. > > Always use LCL instead of LCLBase. OK, I ?will. Thank you.

Mattias

Reply by email