General :: Dealing With Locations Of Libraries

Mar 7, 2010

What can you do when your linux system "can't find" dynamically linked libraries that are indeed installed in their correct locations? Case in point, I'm trying to run a program called 'ucanvcam':

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ./ucanvcam
./ucanvcam: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
oliver@human ~/installed/ucanvcam-0.1.6/bin $ locate libgd.so.2
/usr/lib64/libgd.so.2.0.0
/usr/lib64/libgd.so.2

oliver@human ~/installed/ucanvcam-0.1.6/bin $ ldd ./ucanvcam
linux-gate.so.1 => (0xf7706000)
[...]
libgd.so.2 => not found
[...]
librt.so.1 => /lib32/librt.so.1 (0xf6b1e000)

How can I tell it to look for libgd.so.2 in /usr/lib64? And more importantly, why isn't it looking there, and where is it looking?

View 1 Replies


ADVERTISEMENT

General :: Use Always The Latest Versions Of The Libraries And Don't Save The Old Libraries For Compatibility?

May 11, 2011

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!

View 6 Replies View Related

General :: Dealing With NonVolatile Memory In Embedded Applications

Nov 5, 2010

I currently work within an RTOS environment without an MMU and thus have access to the entire memory map of whatever application I'm working on. As is common in the embedded world, different parts of the memory map relate to different peripherals or different types of memory. For our next generation hardware, my company is looking at moving to an MMU-enabled processor and using Linux in some shape or form. Most of us in the dept are familiar with Linux, but we are not Linux gurus by any means. So how to explicitly indicate to Linux that we need certain portions of an application to be stored in NVRam and other portions of the application to NOT be based in NVRam has us confused. None of us have a clear understanding of how user memory is delved out by Linux and how we can influence Linux to use specific portions of the memory map at specific times.

For example in this new application, we expect to have 2 memory chips, both that are DDR3 interfaces. One is a standard DDR3 chip. The other is a non-volatile MRAM with a DDR3 interface so it can be accessed by a DDR3 controller and coexist with conventional DDR3 memory. But because the portion of the memory map that the MRAM will represent will be the only portion of non-volatile memory, we are unclear how we explicitly access MRAM addresses in an MMU-controlled environment. My hail-mary guess was that we would want to somehow tell Linux that we want the MRAM's memory space to be mounted as a RAM Drive and then we access that memory as though it is a file on a HD, except it is much higher speed since it will be at DDR3/MRAM speeds. Is there a better, more straight forward way to do this? Coming from an RTOS world, Linux is going to pose some serious challenges for us, but I think it will be the right move once we are all up to speed and are thinking Linux-centric.

View 1 Replies View Related

General :: Using Dynamic Libraries As Static Libraries?

May 6, 2010

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?

View 3 Replies View Related

General :: Nas - Most Effective Backup Software -> When Dealing With Large Numbers Of Files?

Jul 18, 2010

I have two NASes. I work off of one, and the other is used as a backup. As I have it set up now, it's slow. Running a backup takes a week. Even for 7 TB, with 1,979,407 files, this seems a bit outlandish,particularly as both systems are RAID-5 and the network is all gigabit. I've been digging about in the rsync man pages, and I really don't understand what differentiates the various topologies.Right now, all the processing is being done on the backup NAS, which has the main volume from the main NAS mounted locally over SMB. I suspect that the SMB overhead is killing me, particularly when dealing with lots of files.

I think what I need is to set up rsync on the main nas as a daemon, and then run a local rsync client to connect to it, which would hopefully allow me to completely avoid the whole SMB-in-the-middle affair, but aside from mentioning that it's there, I can find very little information on why one would want to use the daemon mode for rsync.

Here's my current rsync command line: rsync -r -progress --delete /cifs/Thecus/ /mnt/Storage/input? Is there a better way/tool to do this? Edit:Ok, to address the additional questions: The "Main" NAS is a Thecus N7700. I have additional modules installed that give me SSH, and it has rsync, but it's not in the $PATH, and I havn't figured out how to edit the local $PATH in a way that persists between reboots. The "Backup" NAS is a DIY affair, built around a 1.6Ghz Via Mobo with a Adaptec Hardware RAID card. It's running CentOS 5 with a full desktop environment. It's the hardware I'm running rsync from. (Gigabit is through a additional PCI card).

Further Edit: Ok, got rsync over SSH working (thanks, lajuette!).I had to do a bit of tweaking on my command line, I'm running rsync with the args:rsync -rum --inplace --progress --delete --rsync-path=/opt/bin/rsync sys@10.1.1.10:/raid/data/Storage /mnt/Storage (Note: I'm specifically not using -a, because I want to change the ownership to the local account, to not freak-out SELinux)

View 5 Replies View Related

General :: Mounting 2 Usb Drives In To 2 Different Locations

Mar 27, 2011

I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?

View 1 Replies View Related

General :: Mounting 2 Usb Drives In To 2 Different Locations?

Mar 27, 2011

I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?

View 4 Replies View Related

General :: Mount Different Folders On Disk To Different Locations ?

Mar 13, 2010

I have a disk with two folders, folder1 and folder2. I'd like to mount these folders separately in my home folder, that is, to the locations:

Code:

View 5 Replies View Related

General :: Equivalent With A Find At The Most Common Locations?

Apr 21, 2011

I am writing a script to install a program (a GUI interface) and would like to search if the required software is already installed. This made me think of the command whereis. I was curious how the command whereis is working but didn't know where to search. Is it equivalent with a find at the most common locations?

View 6 Replies View Related

General :: Remove Multiple Directories In Different Locations?

Mar 15, 2010

I have hundreds of directories in various subdirs that I need to remove. I want to remove all of these dirs, but can only find solutions on how to do remove files (or how to remove subdirs from within the current dir).

I think I need something like

find -iname 'testfile*' | xargs rm -i

where I want to remove every directory that contains the word 'testfile' within the directory name. I know xargs wont work for dirs,

View 9 Replies View Related

General :: Nautilus Cannot Handle Computer Locations

Mar 15, 2011

I am experiencing weird problem with Gnome 2.30.2 on my Debian installation. I can't open "Computer" from places, also, partitions which are not explicitly defined in fstab are not mounted automatically.

View 2 Replies View Related

Ubuntu :: Cp Not Dealing With Variable Properly?

Mar 19, 2011

I am having trouble with a script that is supposed to : a)take all the jpg pictures in a given directory/parameter and create thumbnails of it in a directory on the desktop.

e.g
from /here/are/the/files.jpg to ~/Desktop/parser-the/files.png. this is my script: all the individual parts work but it falls apart when i put them together.

Code:
for picturesource in $(ls ${1}/*.[jJ][pP][gG])
do
echo this is the picturesource $picturesource;
destination=~/Desktop/parser-"${picturesource}";
echo this is the destination $destination;

[Code]...

View 2 Replies View Related

Slackware :: Dealing With Two Monitors With Different Resolutions?

Jul 2, 2011

My notebook's LCD runs at 1920x1080 while my external LCD runs at 1920x1200. For the most part I use the external LCD, but there are times when I need to disconnect and use just the notebook's LCD. Because of the different resolutions I need to exit my X session and go back in otherwise the higher resolution of the external LCD gets cut off when I switch to the notebook's LCD. Other than forcing a non-native 1920x1080 on the external LCD, is there any other way to get both screens to show the full desktop without having to restart X? The GPU I have is an nVidia with the nVidia drivers.

View 10 Replies View Related

General :: Copying Files From Multiple Locations To One Destination

Feb 21, 2011

Suppose I have a tree structure like this:
/home/mahmood/sim/a/b/file1.cpp
/home/mahmood/sim/a/b/file2.h
/home/mahmood/sim/a/c/file3.txt
/home/mahmood/sim/d/file4.txt

How can I copy all of them to /home/mahmood/sim. So that when I run "ls" in /home/mahmood/sim, I see all files:
file1.cpp
file2.h
file3.txt
file4.txt

Can 'cp' search for all file and copy them in another folder?

View 3 Replies View Related

General :: Gnome - Cannot Access Computer Or Trash Locations

Mar 4, 2010

I have built gnome-2.28.1 from scratch (source) with gnome I compiled GDM and many other programs. GDM is starting fine, I can enter my user on the login prompt and login without problems. When I'm in the desktop I can't access the Computer or Trash locations clicking on the icon or even through Nautilus, the same error happening:
Error: Operation not supported.

I tried debugging by hand running the follow command: gvfs-ls trash://
Which tells me exactly Error: Operation not supported.

On my ubuntu system, lsof | grep gvfs returns a lot of gvfsd* daemons, like gvfsd-computer and gvfsd-trash. On my Scratch system lsof | grep gvfs doesn't return anything. My prefix used when building gnome was /opt/gnome and sysconfdir on /etc/gnome/2.28.1. lsof shows me that D-Bus is running, actualy gdm starts gnome with dbus-launch --exit-with-session gnome-session.

And inside my /etc/dbus-1/session-local.conf I have:
Code:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"[URL]"> <busconfig>
<!-- Search for .service files in /usr/local -->
<servicedir>/opt/gnome/share/dbus-1/services</servicedir>
</busconfig>

Well, I done many tweaks around and still can't display gvfs location, what I think is very odd is that lsof doesn't returns any gvfsd* daemon running.

View 2 Replies View Related

General :: Changing A File At A Time Located In Two Locations?

Nov 23, 2010

suppose i have two file with same name fstab one file is located in /etc and the other is located in /root/ If i make a change in /etc/fstab file the changes has to reflect in /root/fstab . Is there any command to do this?

View 6 Replies View Related

Networking :: Dealing With The Novatel USB760 Internal CD

Apr 18, 2011

I am using Ubuntu 10.04 and trying to get a Novatel USB760 to work. Initially,it is detected as a CD rather than a modem. So, I wrote a udev rule to eject it and that worked, but sometimes the CD comes back and remounts itself and then kicks the modem off and the connection dies. I tried various ways to fix this, but no luck. Finally, I just deleted all the cd files in the /etc/udev/rules.d and the /lib/udev/rules.d (if you don't delete these, udev recreates the files in /etc/udev/rules.d). That does work and now the cd reports hardware errors and does not mount and the modem works as it should.

Now, this works on the device that does not and never will have a CD or DVD attached to it, but on my laptop I don't want to do that as I would not have access to my DVD drive. Does anyone know of a way to make the udev rules ignore specific hardware and not try to create mounts or symbolic links for those devices. Ideally, I would like to blacklist the novatel CD part and not the modem, but I am unsure how or if this is possible.

View 4 Replies View Related

Programming :: Dealing With Code Efficiently / Can't Use Textwrangler?

Jul 10, 2011

On my Mac, I use Text wrangler to store all of my html and css code I use to create my web site. So far so good, or should I say so great because I love using Textwrangler. My problem is that when I am aay from my computer or on another computer with another OS, I can't use Textwrangler. I am looking for a way (and I hope this is possible), to store and edit my code online no matter where I am or what computer I am using.

For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm

View 1 Replies View Related

General :: Download A Single File In 2 Parts To Different Locations Using Wget?

Jan 18, 2011

I need to use wget (or curl or aget etc) to download a file to two different download destinations by downloading it in two halves:

First: 0 to 490000 bytes of file
Second: 490001 to 1000000 bytes of file.

I will be downloading this to separate download destinations and will merge them back to speed up the download. The file is really large and my ISP is really slow, so I need to get help from friends to download this in parts (actually in multiple parts)

The question below is similar but not the same as my need: How to download parts of same file from different sources with curl/wget?

aget

aget seems to download in parts but I have no way of controlling precisely which part (either in percentage or in bytes) that I wish to download.

Extra Info

Just to be clear I do not wish to download from multiple locations, I want to download to multiple locations. I also do not want to download multiple files (it is just a single file). I want to download parts of the same file, and I want to specify the parts that I need to download.

View 1 Replies View Related

Ubuntu :: Dealing With Panels When Going From Dual To Single Screen?

Sep 20, 2010

I have a laptop. At home and at the office I hook it up to an extra monitor for extra screen space. When I do this I add some panels on the second monitor.

When I occasionaly use my laptop op the train, all my extra panels show up on my first screen, which get really cluttered.

If I delete the panels I have to recreate them when I connect my extra screen again.

Is there any way of configuring gnome so that you can easily recreate 'deleted' panels, or configure the extra panels to not show up unless the second screen is attatched ('lock panel to screen')?

View 3 Replies View Related

General :: Windows - Code/software Access Locations In Memory That It's Not Supposed To?

Apr 11, 2011

By default, when applications run, they are limited in the amount of RAM they are allowed to access right? Technically my VLC could not access memory addresses used by Chrome. But how is it possible for the operating system/compiler to mistakingly allow access to an address a code is not allowed. I know alot of 'exploits' and 'payloads' take advantage of this fact and create variables that take up too much space and 'overflow' into other addresses, but how does this actually happen?

Are some programs more prone to this than others? Does it matter in which language they are coded in? For example, I know C is allowed to play around with memory, while Java is not. Also, what are the advantages of this? What if someone wrote malicious code to access someplace in memory, what could they do? The only thing I can think of is passwords/keys stored in RAM.

PS I thought about putting this in Stack Overflow, but my question is much broader than just specifically related to a programming perspective. If I've placed it in the wrong place, I'm sorry.

View 2 Replies View Related

General :: SFTP Chroot - Unable Move Directories To Other Locations Of The System

Sep 26, 2010

I tried setting up sftp for my users. Each of my user have their home directory at "/var/www/public_html/$USER". When my users are using sftp, they can only see their own directories and unable to move to other locations of the system. I followed through the following tutorials: [URL]

The users are able to sftp into the system successfully. However, they are able to see the whole system. Somehow, it appears that the users are not jailed in their home directory although in the tutorial it states otherwise. The difference of my system against the tutorial is that I am using Dropbear for SSH server while it is using Openssh server. Although dropbear does not support sftp, I am able to login through sftp through the use of sftp-server. For the internal mechanics, I am not sure how though.

Assuming that when I tried to SFTP, the sftp-server is ran with the sshd_config, then everything should be working fine right? Do i need to run chroot command at all? The following is the procedure I used to attempt the objective:

1) Add a new user to the group: SFTPonly
2) Chown user:SFTPonly user/home/directory
2) Modify the sshd_config to what is reflected in the tutorial and other paths.

View 1 Replies View Related

Ubuntu :: Extend LVM And Didn't Feel Like Dealing With The Terminal Commands

Jul 18, 2010

I am trying to extend my LVM and didn't feel like dealing with the terminal commands, so I downloaded system-config-lvm. But when I run it, I get the following readout:

Code:
sudo system-config-lvm
Traceback (most recent call last):
File "/usr/share/system-config-lvm/system-config-lvm.py", line 50, in <module>
from Volume_Tab_View import Volume_Tab_View
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 11, in <module>
from Properties_Renderer import Properties_Renderer

[Code]...

View 2 Replies View Related

General :: Auto-mount Virtual Machine Locations When VMware Image Finishes Loading?

Jun 20, 2011

I mount a few locations from a VMware virtual machine, but currently every time I start up VMware I need to re-mount the locations once the VMware image has started up fully, which gets tedious. I'd like to be able to mount them automatically when VMware is started.

I generally double-click the .VMX file (which is associated with VMware Player) to launch the virtual machine, but once it has finished loading I would need to run the mount commands manually or execute a bash script that does it.

Is there any way you can think of to have it done automatically? One way I can think of is to start my virtual machine by running a script that starts VMware player, sleeps for a minute or so, then runs the mount command - but setting the right sleep interval would be difficult because this varies a fair bit - and overall, it's a solution that's kinda icky and that I'd like to avoid if there's some better option.

View 3 Replies View Related

Ubuntu :: Convert File Using Ffmpeg Returns Error Dealing Just With H264 Codec?

Jan 20, 2011

I am trying to convert a file using ffmpeg. I have this following code in a terminal.

ffmpeg -i introvideofinal -vcodec libx264 -acodec libfaac introvideofinalfinal.mp4

It returns an error dealing just with the h264 codec saying that I need to use a vpre parameter? I can't find any documentation on using the vpre parameter.

View 1 Replies View Related

General :: Fedora Ethernet File Locations For Auto Eth - X - Devices Missing Ifcfg-ethX Files

Jul 24, 2010

Missing ifcfg-eth[2-5] fileset for ZNYX 345Q Quad Port 10/100 cards. I have showing in the gui network device that my ports for my ZNYX ZX345Q Quad Port card my ports are Auto eth2, Auto eth3 etc. My Motherboard and Intel cards show as System eth0 and System eth1.

There ARE corresponding entries for those in my /etc/sysconfig/network-settings/ directory, but there are not ifcfg-eth[2-5] files to correspond to these adapters. Can I just write my own files and that will do it?

How does Fedora 12/13 load these drivers into the kernel without having these ifcfg files?

I'd love to know if there is another way Fedora controls NICs / other system resources.

View 1 Replies View Related

General :: How Does Cp Command Determine Source And Destination Locations In Command?

Apr 14, 2011

When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.

View 4 Replies View Related

General :: If The Libraries Are GPL Or LPGL

Jan 12, 2010

I am working on a user space application that I would like to release under the LPGL. I am linking against libraries that I'm not sure if they are GPL or LGPL. Can someone help me determine if the libraries are GPL or LPGL.

For reference I have included a snippet of my gcc command:

View 4 Replies View Related

General :: Add New Libraries To SuSe?

Apr 30, 2011

How do I add new libraries to SuSe Linux?

View 1 Replies View Related

General :: Install X11 Libraries On Red- Hat?

Nov 12, 2010

I am new to linux environment. I need to install libxt-dev ; libx11-dev ; and xorg-dev (xserver-xorg-dev)

My Red Hat Linux Enterprise version is : Linux 2.6.9-5.EL # I think the redhat is enterprise edition 3

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved