Questions tagged [library-path]

71 questions
285
votes
16 answers

Change R default library path using .libPaths in Rprofile.site fails to work

I am running R on Windows, not as an administrator. When I install a package, the following command doesn't work: > install.packages("zoo") Installing package(s) into ‘C:/Program Files/R/R-2.15.2/library’ (as ‘lib’ is unspecified) Warning in…
I Like to Code
  • 7,101
  • 13
  • 38
  • 48
23
votes
1 answer

Linux service can't load library path in the /etc/ld.so.conf.d

I have a service in Linux. When I start it use service start or start in init.d. It can't load config which has stored in /etc/ld.so.conf.d/. So some process which load the library path in /etc/ld.so.conf.d/. can't be launched by this service. But…
JinruiDu
  • 353
  • 1
  • 2
  • 9
15
votes
1 answer

Update ldconfig cache without root permission

$ uname -a Linux xhost10.bcgsc.ca 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux $ /sbin/ldconfig --version ldconfig (GNU libc) 2.5 I am installing several binaries and libraries locally, since I do not have root…
David Shih
  • 402
  • 1
  • 3
  • 7
14
votes
1 answer

Check where include/library path variables like OpenCV_LIBS point to in unix

When using some libraries like OpenCV with C/C++, variables like OpenCV_LIBS are used to point the compiler/linker to the relevant directories. Examples using cmake: include_directories( ${OpenCV_INCLUDE_DIRS} ) target_link_libraries( project_name…
Mark
  • 173
  • 1
  • 2
  • 6
12
votes
5 answers

How to find out the Python library installation path?

For installing third-party Python packages I have used a setup.py script that uses setuptools.setup() to install a bunch of packages. After the installation I can find these packages on one machine under /usr/local/lib/python2.7/dist-packages and on…
user2539266
11
votes
4 answers

giving 'java.library.path' in netbeans for .dll/.so files

How do i give the path for the .dll or .so file in netbeans to load the library using System.loadLibrary("Foo") I read this on netbeans page but couldn't help me. as it gives the unsatisfied link error. These are the two things i tried : In the…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
10
votes
4 answers

Is there any way to simulate LD_LIBRARY_PATH in Windows?

I have a program do so some graphics. When I run it interactively, I want it to use OpenGL from the system to provide hardware accelerated graphics. When I run it in batch, I want to be able to redirect it to use the Mesa GL library so that I can…
likso
  • 3,370
  • 3
  • 17
  • 18
9
votes
2 answers

Perl, Why is @INC different?

I have a simple Perl script that prints out @INC as the following: #!/usr/bin/perl print $_, "\n" for @INC; I execute the script in 2 different ways with ./test.pl and perl test.pl, the output as the following: [neevek@~/bin]$ ./test.pl…
neevek
  • 11,760
  • 8
  • 55
  • 73
9
votes
4 answers

Mac OS X Lion and Xcode upgraded: missing headers and libs

After upgrading to Lion, and upgrading Xcode, make can't seem to locate headers and libs. I looked in /usr/include. The only thing in there was 'parallels-server'. So, I renamed /usr/include to /usr/include.old, and made a symlink…
gederer
  • 105
  • 1
  • 1
  • 4
9
votes
2 answers

GNU ld cannot find library which is there

The packages I'm toying with here are rather unknown, but nevertheless the problem is rather generic. Basically, I'm trying to compile Python module (called rql) with C++ extension. The extension uses external framework called gecode, which contains…
Red
  • 1,450
  • 2
  • 17
  • 33
8
votes
1 answer

pkg-config: best practice for setting -rpath?

Are there any best practices to set -rpath or libtool's -R based on a pkg-config output? Do I have to resort to a sed trick?
nodakai
  • 7,773
  • 3
  • 30
  • 60
7
votes
1 answer

How to get the system library path on Unix (Linux, FreeBSD)

I need a more-or-less portable programmatic way for querying the dynamic library path list. For Linux, I can concatenate the $LD_LIBRARY_PATH and the contents of /etc/ld.so.conf (processing the include directives as needed and possibly filtering by…
pts
  • 80,836
  • 20
  • 110
  • 183
6
votes
3 answers

How to specify a custom stdlib directory for LLVM

I have LLVM 3.3 with Clang, and $ /tmp/clang/bin/clang -print-search-dirs programs: =/tmp/clang/bin:/usr/lib/gcc/i486-linux-gnu/4.4/../../../../i486-linux-gnu/bin libraries:…
pts
  • 80,836
  • 20
  • 110
  • 183
5
votes
1 answer

CMake set library search path fails in testCXXCompiler

I built my own GCC and libraries and put the libraries in /opt/gcc-4.6.2/lib so generically-named libraries like libstdc++ do not interfere with other parts of the system. This means I have to specify the library search path manually: $> g++-4.6.2…
Travis Gockel
  • 26,877
  • 14
  • 89
  • 116
5
votes
2 answers

How do I add several library path in ansible.cfg file

I've installed napalm-ansible using pip, and now trying to add napalm-ansible library path into my ansible.cfg file. root@usvr-1804:/home/labadmin# napalm-ansible To ensure Ansible can use the NAPALM modules you will have to add the following…
R.abdhir
  • 75
  • 1
  • 4
1
2 3 4 5