[Users] How to compile a plugin with these details?

Dedeco Balaco dedeco.balaco at yahoo.com
Fri Sep 24 16:23:56 CEST 2021



Em 23/09/2021 19:31, Ricardo Mones escreveu:
> Hi Dedeco,
>
> On Thu, Sep 23, 2021 at 03:14:42PM -0300, Dedeco Balaco via Users wrote:
>> Em 23/09/2021 13:39, Paul escreveu:
>>> On Thu, 23 Sep 2021 13:32:07 -0300
>>> Dedeco Balaco via Users <users at lists.claws-mail.org> wrote: 
>>>
>>>> How do i compile just the one plugin i want, and install it in the
>>>> correct relative folder where claws has been installed? All the rest is
>>>> not necessary to me. Can you give me some help with what i should change
>>>> or do, compared to the instructions given in the README file? (why these
>>>> are different from the instructions in the INSTALL file, which says to
>>>> run configure script?)
>>> run configure with the correct prefix, e.g.:
>>>
>>> ./configure --prefix=/usr
>>>
>>> cd to the plugin source directory that you want, e.g.:
>>>
>>> cd src/plugins/fancy
>>>
>>> and run make and sudo make install there.
>>>
>>> with regards
>>>
>> Really easy! I did not imagine it could be that simple. But there is a
>> problem: other plugins (I installed one from the Debian repository) use
>> the folder, and the one i just compiled, with your steps, want to copy
>> it to a different folder.
>>
>> From repository:
>>
>> /usr/lib/x86_64-linux-gnu/claws-mail/plugins/
>>
>> Installing from downloaded source, steps above:
>>
>> /usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins
>>
>> See the difference?
>>
>> /usr/lib/x86_64-linux-gnu/claws-mail/plugins/
>> /usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins
>>
>> There is an extra "lib" folder in the second path. I used
>>
>> $ ./configure --prefix=/usr
>>
>> to obtain that result.
>>
>> In another try, I did:
>>
>> $ ./configure --prefix=/usr/lib/x86_64-linux-gnu/
> This prefix is wrong. If you want to build plugins like the Debian
> packages do, just use the same dir-related flags for configuring:
>
> https://salsa.debian.org/claws-mail-team/claws-mail/-/blob/master/debian/rules#L20
>
> Anyway, keep reading...
>
>> $  cd src/plugins/fancy
>>
>> $  make
>>
>> $  LANG=C; make install
>> make[1]: Entering directory '/dev/shm/claws-mail-3.17.8/src/plugins/test'
>> make[1]: Nothing to be done for 'install-exec-am'.
>>  /bin/mkdir -p '/usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins'
>> /bin/mkdir: cannot create directory '/usr/lib/x86_64-linux-gnu/lib':
>> Permission denied
>> make[1]: *** [Makefile:528: install-pluginLTLIBRARIES] Error 1
>> make[1]: Leaving directory '/dev/shm/claws-mail-3.17.8/src/plugins/test'
>> make: *** [Makefile:710: install-am] Error 2
>> 2021.09.23 15:09:54 [  2] user at debian:
>> /dev/shm/claws-mail-3.17.8/src/plugins/test
> You need to be root to install stuff on system directories. You missed
> the "sudo" bits that Paul mentioned. But if you're puzzled by this error
> I'm not sure you should be installing things on system directories as
> root ;-)
>
> Safer would be to install the plugin to a directory in your home folder
> (e.g.: --prefix=/home/user/myclawsplugins) and load it from the folder
> created by make install under it. That doesn't require root and chances
> you break your system is zero. Note that Claws Mail allows loading
> plugins from any directory, not just the system wide folder.
>
> regards,

Thank you for pointing, Ricardo, but i know that permission problem. I
did it not being root on purpose, because i wanted to see in which
directory it would try to install, but without doing it. I will check
the page you sent above what i quote here, and i answer you in a few
more minutes, probably.

Thank you.�� (:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20210924/b56a8858/attachment.htm>


More information about the Users mailing list