I've been trying to use the library boost/thread.hpp but I cant get it to link. Every time I try it looks like this:
Code:
tyler@TjLaptop01:~/Desktop$ g++ thing.CPP -o Desktop -lboost_thread
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
I am stuck with a problem to link static libraries with gcc. There is no problem with source files since I am able to compile in a machine where the static library is installed. I am compiling with the following: Code: :~/Emotion/pjproject-1.0.3/third_party 157% gcc -Wall -I/portaudio/include -o rec patest_record.c -L./lib -lportaudio-x86_64-unknown-linux-gnu
When performing rpm -Uvh, my rpm is not able to link the shared library. My rpm use shared libraries which are created by my software. when i do rpm -ivh everything is working fine My rpm creates the softlinks to the shared libraries. Now when i install the rpm using -Uvh switch which upgrade..the shared libraries are not loading.
I'm trying to compile libetpan-0.57 on RedHat Enterprise Linux 5.2 64-bit and it is refusing to link against the 64 bit system libraries. I've tried everything I can think of. I've tried to hack libtool, run the command make was trying to run manually and changing the library search paths but nothing works. When I run the command make tried to run manually and change -L/usr/lib to -L/usr/lib64 most of the "skipping incompatible" library messages disappear except for "/usr/lib/libexpat.so: could not read symbols: File in wrong format." Below is the output when I run make code...
I am having some trouble when I try to link my custom libraries to target executables. There are two libraries
liba libb
and an executable exec based on main.o The library libb has some reference to liba. Now if I put the libraries in same directories, I can compile the code as g++ -o exec main.o liba.a libb.a But, if I put the libraries in different directories, say d1 and d2, and use the command as g++ -o exec main.o d1/liba.a d2/libb.a I get an error as undefined reference to some function in liba. I am not sure if I am missing some thing in linking process. Also, if libb doesnot refer any functions in liba, there is no error in either of the case.
In mandriva 2008 platform I have installed gcc-g77, liblapack, liblapack-devel, libblas, libblas-devel, arpack, arpack-devel and arpack-static packages. When I link *.f code and these libraries, using g77 compiler with -llapack -lblas -larpack options, everything work. Then when I replaced g77 by gfortran compiler, to be able to work with double precision complex arithmetic, I have got a number of undefined references errors:
[code].....
It looks as if I need to install f95 lapack and arpack libraries. Does anybody know if such rpm packages exist? I cannot find them in the net. If they exist, where is it possible to download them?
You can see the link commands I'm using, and the lib and include path are both valid. I tried replacing -lmysqld with -lmysqlclient but this did not help. I'm using Debian and MySQL, libmysqld-dev and libmysqlclient-dev are all installed.
Why many Linux distros are trying to use always the latest versions of the libraries and don't save the old libraries for compatibility? I mean, I can see libtiff for example, i can found a libtiff.so.5 on my /usr/lib, but doesn't store a libtiff.so.4 or 3 just for binary applications or games. For this example, I need libtiff.so.4 for uplink.
That should happen too on the old version of sims for linux, some ID games or others.What's wrong with storing old libraries? PD: Yay, my first post on 3 years!
Is there any way to use a dynamic libraries as a static libraries instead when compiling, so that my resulting executable won't have them as dependencies?
I was looking for live link to download ubuntu mobile but unfortunately I don't find anything... Can someone send me a link for download and a link with the installation instructions ?? All the links that I found are dead.
I have a problem where I'm using Ubuntu linux to mount a Windows Vista machine's USB drive and access it on the web using Apache. I did have the USB drive plugged into the Linux machine directly and that was working via the web. FollowSymLinks is on in httpd.conf
[Code]....
The mount works and I can see the files (see above) from my regular linux user account. If I make a test file in /mnt and soft link to that, I can see it on the web. So it's just the mount to the vista machine that seems to be a problem. It's supposed to be a simple read-only mount and the apache login should (I think) be able to see the same generic root access permissions.
log from apache: [Mon Apr 26 20:39:42 2010] [error] [client 99.99.99.99] Symbolic link not allowed or link target not accessible: /home/user1/pub_html/Music, referer: https://xx.xx.xx/~user1/music.html
The credentials have a login and password that matches a special read-only account on Vista. I can see the files on the system from Linux, but not via the web. As mentioned above, a different link to the same /mnt area works fine via the web. I've tried several different mount options with no success.
i only need localhost for testing some phpnow i get[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs
In the ordering of files I keep I need links to directories. Sometimes I even need to move directories to new locations. I have tried using symlinks, but they become dead when I move the directory they point to. I have tried hard links, but I haven't found any Linux file system that would support hard linked directories. How can I achieve that a complex structure of directories (currently with symlinks for directories and hard links for files) keep symlinks live when directories are moved?
- is there any utility that updates symlinks when a directory is moved?
- is there any Linux filesystem that supports hard linked directories?
- is there any good Linux interface to the new NTFS (the only file system I know to support automatically updating directory links, called directory junctions)?
I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand soft link is not a copy of original file, but is a hard link a copy or not?
There is a symlink from /var/www to a personal directory. FollowSymlink and chmod 755 are all set. It works perfectly until each morning I will get a "Symbolic link not allowed or link target not accessible" error. When I do a "sudo service apache2 restart", the problem will go away.
I installed 10.10 using wubi (Host system is Win XP). I want to create a symbolic link of a file on the host system (Windows c:abc.doc file) in my Ubuntu home ~/ directory. When I type command ln /host/abc.doc abc.doc It gives me following error ln: creating hard link `abc.doc' => `/host/abc.doc': Invalid cross-device link
What I am trying to do is edit the link target to force ip=xxxx.xxx.xxx string at end. I have a software program which access 4 different servers running the software but with different configs. In xp I can copy links and modify as above to correctly force the program to the various servers.
I have read the various how tos on hard vs sym links which I get. Playing around with hardlinks and sysmlinks (the examples I find) does not seem to be what I need. Feel like this is pretty basic stuff but I am a bit stumped.
It seems to me that if I could download every single development library or dependency available for Linux/Ubuntu, that it would make my life a whole lot easier as for as acquiring software. All I would have to do then is run configure/make/make install which isn't that bad.
The problem being here that the repositories in Ubuntu suck. In fact, they suck in all Linux distributions. The only things they are good for is gathering dependencies needed to compile programs. All the packages that I actually want are frozen and therefore are outdated and useless. I've had to learn how to compile stuff just so I could get the programs working like they do in Windows. Except in Windows all I had to do was double click on the file and not spend hours figuring out what to do.
Then of course there is the other problem that about 90% of the software I need is not included in these repositories.
Have Linux people not heard of the Internet? The ultimate repository? It sure works well in Windows.
Anyway, if there is a way to download all these files in one go (because let's face it, I'll have them all downloaded eventually) I would like to know how. Even if they take up 100's of gigs it would be worth it for the savings in time and energy.
After I downloaded the source for lua, I followed the install instructions, doing...
make linux install make generic install
I've also done the make test and it passes, printing out Hello World, from Lua 5.1. However, I can't link to the lua libraries in CodeBlocks. I know where lualib.a is (usr/local/lib) which I set in my Search Directories for the linker. I still get error messages like...
undefined reference to lua_isstring
P.S. I had this running on Windows via Visual Studio.
I moved a program from one machine to a different one. When I run it on the new one I get errors. How do I tell what libraries it's missing and then find them?
A 32-bit program (Cisco AnyConnect VPN Client) appears to be trying to load a library from /usr/lib even though the 32-bit library is installed in /usr/lib32:
Installing from sources was always complicated to me, but biggest problem is installing when some strange dependencies are "missing". Let's do it on example - I am sure it will benefit lots of users.I have a unmodified ubuntu 9.10 (Karmic) on 64 bir architecture. I download latest Grisbi sources from official web page.I didn't modify any paths to system variables...and it's usually problem with glib or gtk with all other sources I try to install.
1) Could someone help me in this particular case with missing dependencies please? 2) What every User should do when trying to install from source and some libraries are missing?How to find them? How to install them ?
I'm using the FortiClient SSL VPN free version provided by my University. I can't get tech support from the university OR Fortigate. I have it running on one system, but I have no idea what the sequence of libraries I installed was. I need it to run on a second machine. pstree is only telling me that the FortiClient ssl daemon depends on pppd. I need to know how to find out what else it's using: LibPKCS and the like.
I want to set up ubuntu 10.10 on a computer WITHOUT Internet access.I also need to install a package on it but it has several dependant libraries (eg libX11-dev)If i just have the names of those libraries & the package, where can i find them, so that they can be downloaded onto a pendrive & then installed onto the comp? (What would a library file look like after download?)
Also after i have copied the files onto the other comp (assuming that it was possible), how do i install the library? Would synaptics recognise that i have installed this library if done manually by this method?
I was trying to install Audacious 2.5 which required new libraries:gdk-pixbuf-2.22.1 glib-2.28.6 gtk+-2.24.4 libmowgli-60e2589fc14e pango-1.28.4
I performed the following commands to build them: Code: ./configure make sudo make install
I rebooted and now my current window/icon theme is missing and gives the following error: This theme will not look as intended because the required GTK+ theme 'eco' is not installed". If I look at synaptic, it shows it as being installed (see screenshot). How do I go about rolling back the library updates I made? I tried reinstalling the themes from synaptic but so far no luck.