Sponsored Content
Top Forums Programming Error while loading shared libraries Post 302969765 by Don Cragun on Monday 28th of March 2016 01:30:26 AM
Old 03-28-2016
Quote:
Originally Posted by vdivb
I am trying to run a C++ program which uses a static library libprun.a. During compilation, I am loading this library file using a environment variable as below.

Code:
LIBDIR =  ${CUSTOM_PATH}/lib

LOADLIBS = $(LIBDIR)/libgqlcomm.a \
	           $(LIBDIR)/libgsml.a \
                   $(LIBDIR)/libprun.a \
                   $(LIBDIR)/libglis.a

I am not getting any errors during compilation or during running the binary in the same environment in which I compiled the binary but I am getting below error when running in a different environment as $CUSTOM_PATH is set to a different path.

I am getting errors only with libprun.a but not with other libraries.

Please suggest
You haven't given us much to go on here...
  1. What "below error" are you getting?
  2. What different environment are you talking about? Are you talking about just using a different setting for CUSTOM_PATH? Are you talking about different operating systems? ???
  3. How is CUSTOM_PATH set when your code works?
  4. How is CUSTOM_PATH set when your code does not work?
  5. Does the file $CUSTOM_PATH/lib/libprun.a exist in the environment when your code does not work?
  6. What operating system are you using?
 

10 More Discussions You Might Find Interesting

1. Programming

Shared libraries

Hello everybody, I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :) Ok this is the problem: I have a library A, which uses B and C, and C uses again D. If I try to run A as plugin in apache,... (0 Replies)
Discussion started by: Micky
0 Replies

2. Programming

shared libraries

I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies

3. UNIX for Dummies Questions & Answers

Clarification about shared Libraries

I have a doubt about the shared libraries. Where do you set the path for the shared libaries, for the dynamic loader to locate. Any suggestion would be of great help. thanks (3 Replies)
Discussion started by: ramkumar_gr
3 Replies

4. HP-UX

Loading shared Libraries dynamically

HI, I am dynamically loading shared libraries using shl_load(). There are multiple processes (50 or more) which loads the same shared library. Will Unix internally load only one copy of the shared library or it will load multiple copies. Can I have memory issues if this is done. Thanks,... (1 Reply)
Discussion started by: Debasisb2002
1 Replies

5. Linux

Shared Libraries

How do i make a library shared say i have a library a.so which i have just compiled. I want to make it shared how do i make it Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Discussion started by: wojtyla
1 Replies

6. Red Hat

RHEL5 reboot - error loading shared library

Hi All, I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error.. /usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory It finnaly ends with the... (0 Replies)
Discussion started by: c00kie88
0 Replies

7. Ubuntu

error while loading shared libraries: libxerces-c.so.28

Hi, Can any one help me ,how to rectify the below problem?........ "error while loading shared libraries: libxerces-c.so.28: cannot open shared object file: No such file or directory" Im using "ubuntu 10.04" (64 bit) (0 Replies)
Discussion started by: kavi.mogu
0 Replies

8. Linux

xz: error while loading shared libraries: liblzma.so.5

Help! I'm busy working on MySQL replication for the site and trying to unzip this bind-geodns xz file on Linux (ubuntu) and am having some problems. http://distro.ibiblio.org/pub/linux/distributions/archlinux/community/os/i686/bind-geodns-9.4.1-4-i686.pkg.tar.xz Could anyone kindly unzip... (4 Replies)
Discussion started by: Neo
4 Replies

9. Red Hat

/usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0

Hi All, I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error.. /usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory It finnaly ends with the... (6 Replies)
Discussion started by: IgnitedMind
6 Replies

10. UNIX for Dummies Questions & Answers

Error while loading shared libraries

Hello, I am trying to run a program from my local account and receive the following error: /local/app: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory On the root account (which I DO NOT have access to), I see that libtiff.so.4... (3 Replies)
Discussion started by: bphqk3
3 Replies
LYX(1)								     LyX 1.6.5								    LYX(1)

NAME
LyX - A Document Processor SYNOPSIS
lyx [ command-line switches ] [ name[.lyx] ... ] DESCRIPTION
LyX is too complex to be described completely in the "man" page format. If your system is properly configured, you can access the full doc- umentation within LyX under the Help menu. LyX is a document preparation system. It excels at letting you create complex technical and scientific articles with mathematics, cross-references, bibliographies, indices, etc. It is very good at documents of any length in which the usual processing abilities are required: automatic sectioning and pagination, spellchecking, and so forth. It can also be used to write a letter to your mom, though granted, there are probably simpler programs available for that. It is definitely not the best tool for creating banners, flyers, or adver- tisements, though with some effort all these can be done, too. Some examples of what it is used for: memos, letters, dissertations and theses, lecture notes, seminar notebooks, conference proceedings, software documentation, books (on PostgreSQL, remote sensing, cryptology, fictional novels, poetry, and even a children's book or two), articles in refereed scientific journals, scripts for plays and movies, busi- ness proposals... you get the idea. Currently, LyX uses the Qt4 library as a toolkit. LyX should run everywhere, where this library runs. This is on all major Unix platforms as well as Windows and Mac OS X (which actually is a unix platform). OPTIONS
LyX supports the following command-line switches. -help summarizes LyX usage -version provides version information on the build of LyX. -sysdir directory sets system directory. Normally not needed. -userdir directory sets user directory. Needed if you want to use LyX with different lyxrc settings. -geometry WxH+X+Y set geometry of the main window. -dbg feature[,feature...] where feature is a name or number. Use "lyx -dbg" to see the list of available debug features. -x [--execute] command where command is a lyx command. -e [--export] fmt where fmt is the export format of choice. Look on Tools->Preferences->File formats->Format to get an idea which parameters should be passed. -i [--import] fmt file.xxx where fmt is the import format of choice and file.xxx is the file to be imported. ENVIRONMENT
LYX_DIR_16x can be used to specify which system directory to use. The system directory is determined by searching for the file "chkconfig.ltx". Directories are searched in this order: 1) -sysdir command line parameter 2) LYX_DIR_16x environment variable 3) Maybe <path of binary>/TOP_SRCDIR/lib 4) <path of binary>/../share/<name of binary>/ 5) hardcoded lyx_dir (at build time: /usr/share/lyx) LYX_USERDIR_16x can be used to specify which user directory to use. The user directory is, in order of precedence: 1) -userdir command line parameter 2) LYX_USERDIR_16x environment variable 3) $HOME/.<name of binary> if no explicit setting is made LYX_LOCALEDIR can be used to tell LyX where to look for the translations of its GUI strings in other languages. FILES
~/.lyx/preferences Personal configuration file ~/.lyx/lyxrc.defaults Personal autodetected configuration file LIBDIR/lyxrc.dist System wide configuration file LIBDIR/configure.py Updates LyX if config has changed LIBDIR/bind/ Keybindings LIBDIR/clipart/ Clipart pictures LIBDIR/doc/ Documentation in LyX format. LIBDIR/examples/ Example documents LIBDIR/images/ Images used as icons or in popups LIBDIR/kbd/ Keyboard mappings LIBDIR/layouts/ Layout descriptions LIBDIR/templates/ Templates for documents LIBDIR/tex/ Extra TeX files LIBDIR is the system directory. This was at build time /usr/share/lyx. SEE ALSO
tex2lyx(1), latex(1). Full documentation in either native LyX or postscript format. BUGS
/LIMITATIONS There are still some bugs in LyX. To report one, read if possible the Introduction found under the Help menu in LyX. You'll find detailed info on submitting bug reports there. If you can't do that, send details to the LyX Developers mailing list lyx-devel@lists.lyx.org, or use the LyX bug tracker at http://bugzilla.lyx.org/. Don't forget to mention which version you are having problems with! LaTeX import is still not perfect and may produce buggy *.lyx files. Consult the tex2lyx documentation. AUTHORS
LyX is Copyright (C) 1995 by Matthias Ettrich, 1995-2009 LyX Team Version 1.6.5 2009-12-05 LYX(1)
All times are GMT -4. The time now is 06:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy