General :: Open Local File Error When Creating File Descriptor?
Sep 14, 2009
error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file
int main()
{
/*both named pipes are open*/
rfd=open(IFIO1,0);
wfd=open(IFIO2,1);
I bought a new SD card which I intend to put some MP3s on - except that I can't write to it because it tells me the destination is Read Only. No-probs thinks I: I'll just reformat it.
"Error creating file system: helper exited with exit code 1: cannot open /dev/mmcblk0p1: Read-only file system"
Various chmod commands all result in Read-only file system. I tried umount then mount commands, but it couldn't find it to mount once I'd unmounted it using the same /media/ file path (I assume it's the only one).
I have an FC13 x86_64 server and having trouble building RPMs, but I don't think it's specifically an RPM problem. I think it's a tty management or other type of problem.
When spec files have a "%files -f filelist.txt", which contains the list of files for the RPM, it calls the /usr/lib/check-files script, which sorts the files that are supposed to be in the RPM and compares them with the files that are in the built RPM before they are packaged.
The trouble is that the sort fails.
Here's the trace from the check-files script:
The above doesn't show that the output from sort is redirected into those /tmp files. The first sort succeeds because it reads data sent by the "find" in the same shell. The second sort fails because (I think) it cannot read data from stdin for some reason.
What could possibly cause this? I've checked various permissions, libraries, even used strace extensively, all of which is inconclusive.
This is one of my test server boxes, so this problem is something that I've caused, but I have no idea what.
libc controls input and output, correct? Could it somehow be a glibc problem, or a devpts problem? I can run a simple command and pipe it to sort with no problem. It appears to only be related to sub-shells.
I also replaced sort with cat and just tried to redirect stdin in that file to a temporary file, and that also fails.
I've tried running it with selinux disabled and that has no effect.
I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:
error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory make[2]: *** [libmpn.la] Error 127 make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'
i've checked the link, and it makes it better. but it doesn't include all the information. i'll continue searching the internet. However i have seen an example of creating a fd:
Code: exec 5<&1 echo "TEST" >&5 exec 5>&-
as in the page, this was intended to redirect the stdout to the fd 5 and create it, and close it. i have the following questions:- what is exactly the meaning of second command? is it to redirect the command stdout "test" to the fd 5? and how i can see the contents of the fd 5? - in the first command, why the < is used instead if > and what is the difference between the below two commands as in the info bash *Redirection section It will be helpful if anyone could include a graph for file descriptor before and after different command execution.
the short file descriptor of an ISO file. I have been assigned with a task to match the short file descriptor of an ISO file(to be provided to the customer) to check if thats "Kudgo Support tools" or not.What linux command should I use?
Where does input to sudo go? I mean when we give password to sudo prompt where it actually goes? If it goes to a file what is its name or what is its file descriptor?
I have a computer in the university and I have root access to this pc. Iam trying to install Cblas library on it. But it gives me a starnge error /usr/local/atlas is read only file system. I tried doing mount -l and it gave me that appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......) I think what it means that the main server directory is mounted to /usr/local and it is read only. So, how can I fix this problem to separate the two and make my /usr/local separate
I get an error when running slapt-get. The error is: "slapt-get: error while loading shared libraries: libsas.so.2: cannot open shared object file: No such file or directory".
I've booted the Slackware disk # 1 and unchecked everything except the libraries category and installed them. I rebooted and it still says this. I get this same error before I put the disk in and rebooted to install ALL libraries. I really need help. BTW, I can't load KDE.I found a pkg manager already installed called "slackpkg". But I really need help on this library issue!! I uninstalled it (slapt-get) anyway, so forget that!
i have a problem with realplayer 11 i can't open it due to that error message
Code: /opt/real/RealPlayer/realplay.bin: error while loading shared libraries: libgdk-x11-2.0.so.0: cannot open shared object file: No such file or directory so how can reveal this problem
Salutations,I've been struggling with getting audacious working for the past hour. I'm using synaptic to install it. When trying to run it from the bash, I'm getting the following error:
Code: audacious: error while loading shared libraries: libmowgli.so.1: cannot open shared object file: No such file or directory.I tried to make /usr/lib/libmowgli.so->libmowgli.so.1 link, but it didn't help. Tried reinstalling audacious/libmowgli and a few others packages, but in vain, too.
I create two script file name for "a.py" and "b.py", It's through socket connection. a.py's file writeing "os.pub(s.fileno,x)"create the file descriptor,but i don't know how to get the descriptor file with "b.py"
As we know, every process has a table with a file descriptor table, in which each entry contains a file pointer pointing to the corresponding file table which contains a v-node pointer pointing to the v-node table.
When closing a file descriptor, are all these data structure deleted?
I installed ubuntu maverick a couple days ago, total newbie. After trying to install some software I no longer can access any of the Places folder and get an error - file not found.
I can open Computer, partitions and devices, just not the first 7 folders which i think are bookmarks. Thanks for helping, U.
Ok, I eventually solved it. Appears I had inadvertently selected another program as default folder openenr. Just opening any folder with right click - open with - folder openenr reassigned nautilus and opens Places folders ok.
I am trying to create a package for Moblin using the Moblin Package creator application in Ubuntu. The RPM package gets created successfully, but when I execute that package in Moblin OS in the terminal I get the following error message: Error while loading shared libraries: libgda-4.0.so.4: cannot open shared object file: No such file or directory.
I understand that the above libraries are missing on my system and I need to add them. My question here is do I have to add them manually after the installation of the package or can the package itself include these libraries and copy them to proper locations when the package is installed. In case the libraries can be included in the package I want to know how that can be done.
Code: #!/bin/sh DATE=$(date +%m/%d/%y) tar zvcf /home/mark/Minecraft/worldbackups/world.$DATE.tgz /home/mark/Minecraft/Public
This give the output of Code: mark@kalle-desktop:~/Minecraft/Exec$ sh save.sh tar: Removing leading '/' from member names /home/mark/Minecraft/Public/ /home/mark/Minecraft/Public/default.html /home/mark/Minecraft/Public/world.png tar: /home/mark/Minecraft/worldbackups/world.01/17/11.tgz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now
I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,
You may know the Humble Indie Pack 2, which is a set of crossplatform indie video games. There's one game in the bundle that doesn't offer a 64bit build and therefore it fails to load. It's called Braid and that's what you get when you try to run it: $ ./braid ./braid: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Of course the 64bit libs for OpenGL and the propitiatory nvidia drivers are installed, but the game asks for the 32bit ones, at least to my understanding. I do know that why can install 32bit libraries on a 64 bit linux system (we do that for the sake of crappy Adobe Flash), but I don't know where to find these libs (searching the repo with keywords like .i586 or ia32 led me nowhere).
I installed the latest Gimp beta and it worked fine but then I couldn't open it. I removed it and I reinstalled but it didn't work, so I installed the latest stable version (no beta) and it still does not work, when I open it form Terminal, this is the response:gimp: error while loading shared libraries: libbabl-0.0.so.0: cannot open shared object file: No such file or directory
We are facing problem of to many file open error because of that application become slow and in tomcat catalina log we get following error frequently Jul 6, 2009 12:27:57 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed
at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:453)
[code].....
no file limit,file descriptor limit for 300 user of tomcat application server and also oracle database server?
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
I am having problems starting jack everytime I try to start it either says bad file descriptor a bunch times or it wont connect to server as client sometime. Other times It just say sorry cannot start jack.