General :: Ldconfig Deletes The Link That Create Using Ln -s In /usr/lib?
Nov 9, 2009I created a link for a library my application needs in /usr/lib/ and then run ldconfig.
The link gets deleted. Should I be creating the link in any other way?
I created a link for a library my application needs in /usr/lib/ and then run ldconfig.
The link gets deleted. Should I be creating the link in any other way?
"/sbin/ldconfig: /usr/lib/ is not a symbolic link"
zypper in <packages>
Retrieving package ..
Retrieving: ..
Installing: ..
Additional rpm output:
/sbin/ldconfig: /usr/lib/ is not a symbolic link
I get this error installing any package
how can we create soft link and hard link in RHEL5 when am using in command it is giving format error
View 6 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 2 Replies View Relatedi am a oracle DBAI want to crete a link for a directory in production serverto remote host.
View 6 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 8 Replies View RelatedI am running both Ubuntu and XP and have a local server for my computer on both systems. Both partitions have a www directory that is accessed when I type localhost into my browser.
I want to be able to work on the project in both systems and have the changes I make show in both. So my questions is how can I make "localhost" point to the windows www instead of the /var/www one when I start up the server?
Create the following directories: parent/child
Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "link to executable" links in the parent.
I had assumed that this would work:
ln -sf ./child ../child1
ln -sf ./child ../child2
But that creates a "link to folder" (./child) in the parent directory. If I change it to:
ln -sf -t.. ./child child1
ln -sf -t.. ./child child2
I get an error, "ln: '../child': cannot overwrite directory".
If I do it from the parent directory (which I cannot do, this is part of a Makefile recipe):
ln -sf ./child/child ./child1
ln -sf ./child/child ./child2
It works. Note that I cannot alter the names of any directories or files. How do I create the links when the current directory is the child?
Is it possible to create a symbolic link that include commands for the program?
For instance, I do the following to start the program:
./script -somecommannd
I would like to create a symbolic like that includes "-somecommand"
Is this possible? or would I need to create a second script that executes that command, and link to that script?
On my Linux system, I want to create a symbolic link to a folder on my Windows 7 partition formatted FAT32. I use:
sudo ln -s /media/OS/Users/dennis/AppData/Roaming/.minecraft ~/.minecraft
However, I end up with a file in my home directory called .minecraft and when I try to access it, I receive:
bash: CD: .minecraft: Too many levels of symbolic links
is there a way to make the symbolic link to the FAT32 folder?
Is there a way under linux to find out directory with frequent writes and/or deletes?
I'm using Ubuntu and recently bought SSD. I moved /tmp to ramdisk and did some other tweaks to avoid wear. But I was wondering if there's a way to pinpoint hotspots in filesystem where files are often written. For example webserver's log directory with many appends every minute or user's download directory where he downloads gigabytes of stuff only to be moved elsewhere soon after finishing.
I came across inotify which could probably do the trick but it seems it'd require lot of scripting which I'm not very familiar with
Whenever we insert CD,it creates a shortcut link in desktop.Can we list this link name by using any command? I am using Oracle Enterprise Linux 5.0.
View 10 Replies View RelatedIdconfig is gone, on ower Debian Etch server
Does anyone how to repair this
Whenever execute the below scriptlet with out proper file name it deletes /tmp directory .I guess this is because value of variable a didnt get initialized and there for rm -rf /tmp/ get executed and entire /tmp directory get deleted.How would i avoid any empty variables to be used in script? as this is a classic case of destructive script.
Code:
#!/bin/bash
echo "Enter file to delete from tmp"
[code]....
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?
View 4 Replies View RelatedI installed debian 8.1, network install on a ThinkPad T60. When I right click the Desktop, I don't get "Create New -> link to application" and other links. In mint 17.1, I get a Menu with all links. I want to create a link to seamonkey with an icon on desktop.
View 3 Replies View RelatedI want to create a link to start apache2 service:
Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all
I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/
I have read that it is best to have a volume LVM set up to contain the BackupPC data that it generates when backing a machine(s) up. By default BackupPC stores the back up data in /var/lib/BackupPC and there is information on how to create a link to the new location and what to mount on the new dedicated LVM What I do not know is how to create a new LVM for the BackupPC files/data on the machine I have. Currently I have a machine running fedora 15 64 bit. It has BackupPC installed via yum but I have not run it as yet. I believe that I have the necessary dependencies installed The machine has two hard drives, one a 80 GB and the other a 500 GB. Currently Gparted is showing;
/dev/sdb1 ext4 /Boot 500MiB
/dev/sdb2 Lvm2 74.04 GiB (in properties it says it is not mounted)
/dev/sdb1 Lvm2 465.76 GiB (in properties it says it is not mounted)
When the machine was loaded with Fedora it was set up as 1 partition and was just a standard out of the box Fedora install accepting the defaults. how do i go about setting up a LVM that I can expand later if necessary to hold the BackupPC data? I saw in one post some where that person call the group Main. how to" or provide a set by set guide as to how to achieve this. Or provide advise o the best way to set the machine up. I do not intend to run anything else on the machine. It is there to back up a server (Fedora 14), A general use machine machine (Fedora 15) and a windows machine (XP).
I have a large collection of files on a computer (tallgrass) and tallgrass is running an ftp server, which I have the username and password to. There is about 600 GB of files on tallgrass that I need access to, but I don't have a big enough hard drive. I need these data files to run a cpu-intensive calculation, and my CPU is significantly better than tallgrass' cpu, which is why I want to do it on my computer. (Tallgrass also doesn't have enough RAM.) What I would like to do is create a "symbolic link" on my hard drive that will point to the directory containing the data on tallgrass. Read-only is perfectly OK. This way I could read from mylink/data0001.dat and it would read from the file data0001.dat over ftp from tallgrass. I shouldn't have any speed issues because tallgrass is on my 1 Gbps LAN. Is there a way I can do this?
View 2 Replies View RelatedI wrote a program to create a link list
Code:
#include <stdio.h>
#include <stdlib.h>
struct node {
[Code].....
I have installed Windows 2003 Server, on that i have installed VMware and in VMware i have installed Ubuntu.Now my requirement is i want to run a Windows Application shortcut from Ubuntu, for that i have installed wine on Ubuntu.Now i have copied and pasted the Shortcut of that Windows Application on Ubuntu's Desktop. When i check the Windows Application shortcut properties its path will be something like this \192.168.1.15ApplicationApplication.exe, but i am unable to run that Application shortcut in Ubuntu.
If i try samething on the other windows system on network it works fine. Actually its a thin client server architecture where i want my thin client to use ubuntu and access the windows application shortcut and run the windows application shortcut on ubuntu. To be more clear my windows 2003 server runs a windows application which has MSSQL as database. Now on my ubuntu system the login page is able to popup but when i give username and password it gives something like server not found,how do i need to approach this issue.
I just tried installing another version of libc6 (2.10.2-6) with kpackage. It didn't work so I had a broken package on my system. I then wanted to fix it with synaptic package manager which then told me in order to remove it, I had to pretty much uninstall all of linux. I then tried installing the older version of libc6 (the one I'm supposed to have: 2.7-18lenny2). That gave me the error code
dpkg -i '///home/sam/torrents/libc6_2.7-18lenny2_i386.deb' ;echo RESULT=$?
dpkg: `ldconfig' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
RESULT=2
I already checked my path and it was: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin (I found it with echo $PATH)
I guess my path is okay so the problem is in ldconfig but how can I get ldconfig in the path and where could it be now?
Ok now since f15 does not use inittab file for default runlevel anymore how do you change it.
I have tried ln -s /lib/systemd/system/multi user.target /etc/systemd/system/default.target
And get the following error ln: failed to create symbolic link `/etc/systemd/system/default.target': File exists
I have even tried changing the /etc/systemd/system/default.target to my multi-user.target file to no aval.
Today's update failed with this line tagged to every package:
Error: Unresolvable requirement /sbin/ldconfig for pixman-0.16.2-1.fc12.x86_64 (installed)
Error: Unresolvable requirement /sbin/ldconfig for libXrandr-1.3.0-3.fc12.x86_64 (installed)
Error: Unresolvable requirement /sbin/ldconfig for libedit-2.11-4.20080712cvs.fc12.x86_64 (installed)
[code]....
I'm working with a program that uses Open Motif to create all of the widgets, including the Open File dialog box (obviously). However, Open Motif being kinda old-timey, 80's vintage, and for the most part now an abandoned project, it is quite clunky. So, actually what I need to do is to open some files located on my work server. I have already successfully connected to the relevant server directories with Samba, and with programs built with GTK+ (such as GIMP) I can open files across the network because I have created a bookmark in Nautilus, and those bookmarks appear in the Open File dialog box created by GTK+. Now, Open Motif is different: it doesn't see network locations, orNautilus shortcuts. When I type "smb://serveripyadayada" in the search folder, it really doesn't like it and complains. So, what do I do? Can I get somehow Open Motif to open a network location? Or can I do a run-around and place a shortcut in the file system that points to the network location?
View 2 Replies View RelatedI've recently installed Ubuntu 9.10 Karmic as a dual boot with WinXP and love it. I've been able to mount my WinXP partition and can access files read/write successfully.
I'd like my WinXP "My Documents" folder to appear as a linked folder in my Linux Home directory.
I think I should be able to use the ln command, but I can't figure it out.
I've tried to create a link that will appear like a "folder" called WinDocs in my Home directory with this command, run from my Home folder:
ln -t /dev/sda1/Documents and Settings/richard/My Documents/ /WinDocs/
but it reports
ln: accessing `/dev/sda1/Documents and Settings/richard/My Documents/': Not a directory
I get the same results if I try /dev/hda1 etc.
I can see the contents of the folder currently in my Places listing. Its shortcut is active on my desktop.
i am root i have an ext4 partition of a usb drive mounted at /mnt/sdc1 i have fat32 partition of the same drive mounted at /mnt/sdc3
i want to copy the folder /mnt/sdc1/mnt/dir to /mnt/sdc3 i navigate to /mnt/sdc3
i type this in terminal cp -r /mnt/sdc1/mnt/dir .
I get a lot of this cp: cannot create symbolic link
How do i copy something from an ext4 partition to a fat32 partition?
I have a school project to write a horse racing program, where the user can type their name, bet money, etc. However, after storing the user's name, it will delete itself after a few more instructions. So when I try to read back the user's name, it it blank. just this one section:
Code:
printw("Welcome. Name?
");
refresh();
scanw("%s",name1); //ask for name
[code]....
I applied some changed to the MOTD in /etc/update-motd (including removing the canonical mention in ./python2.6/dist-packages/landscape/sysinfo/landscapelink.py). After updating the system I found that all my changes had been deleted without any warning. Is there a way around this nonsense?
View 2 Replies View Related