[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin <addres
From: |
Jens Thoms Toerring |
Subject: |
Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin <address@hidden> |
Date: |
Tue, 11 Oct 2011 18:13:21 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi Sergey,
On Tue, Oct 11, 2011 at 08:57:55AM -0700, Sergey Klimkin wrote:
> I want to transfer a program created in xforms friends for testing.
> If you run this program on another computer, you will receive an absence of
> the necessary libraries (quite naturally).
>
> Terminal-log:
> -------------
> address@hidden:~$ cd /home/sklimkin/Projects
> address@hidden:~/Projects$ ls
> Garmin_iPAQ.xpm survey
> address@hidden:~/Projects$ ./survey
> ./survey: error while loading shared libraries: libforms.so.2: cannot open
> shared object file: No such file or directory
> address@hidden:~/Projects$
>
> That in this case can and should be applied to this program, so it was
> performed?
> It is desirable to avoid installing xforms-1.0.xxxxxx
In principle, you should be able to have both libraries installed
at once. But there can be problems: If for example, the old ver-
sion is installed in /usr/lib and the new one in /usr/local/lib
you rather likely will have in /usr/lib a symbolic link
/usr/lib/libforms.so pointing to /usr/lib/libforms.so.1.1.0
and in /usr/local/lib
/usr/local/lib/libforms.so pointing to /usr/local/lib/libforms.so.2.0.0
The linker will rather likely pick the wrong one, i.e. the
old version.
Problems with the compiler may also result when different
versions of the forms.h include file are installed (the
old version may have /usr/include/forms.h and the newer,
self0compiled version /usr/local/include/forms.h). Again,
the compiler may pick the old version of the header file
and thus problems could ensue.
So, if you have two versions of XForms installed make sure
that
a) there's only a single version of the header dile forms.h
exists (the one for the newer version, rather likely in
/usr/local/include)
b) make sure that the symbolic link /usr/lib/libforms.so
is deleted (other programs, still linked against the
old version of the library will continue to work, since
they are already linked they don't need that symbolic
link).
Regards, Jens
--
\ Jens Thoms Toerring ________ address@hidden
\_______________________________ http://toerring.de
- [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/07
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/07
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/07
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/10
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/11
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin, 2011/10/11
- Re: [XForms] Xforms & threads-functions & others, Sergey Klimkin <address@hidden>,
Jens Thoms Toerring <=