What is the maximum number of threads that can be created by a process under Linux? How (if possible) can this value be modified? Answer Linux doesn’t have a separate threads per process limit, just a limit on the total number of processes on the system (threads are essentially just processes with a shared address space on Linux) which you
ld cannot find an existing library
I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too. I am calling the linker with: ld complains: However, libmagic exists: How do I diagnose this problem further, and what
UTF-8 all the way through
I’m setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I’m aware that I need to configure Apache, MySQL, and PHP to do
What is Your Experience with TaskJuggler? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 3 years ago. Improve this question We are an all Unix shop (Solaris, Linux). This last product
Setting environment variables in Linux using Bash
In tcsh, I have the following script working: What is the equivalent to the tcsh setenv function in Bash? Is there a direct analog? The environment variables are for locating the executable. Answer export VAR=value will set VAR to value. Enclose it in single quotes if you want spaces, like export VAR=’my val’. If you want the variable to be
ELF file headers
A quick question about elf file headers, I can’t seem to find anything useful on how to add/change fields in the elf header. I’d like to be able to change the magic numbers and to add a build date to the header, and probably a few other things. As I understand it the linker creates the header information, but I
Is there any similar tool for Linux that works like Shark on Mac OS X?
Shark on Mac OS X is a great tool for profiling an application on a running system. Is there any similar tools for Linux? OProfile looks like it could be, anyone used it? Answer OProfile is a tool that does sampling-based profiling of both your application and the system calls it makes. This allows for seeing detailed information about where
GCC and ld can’t find exported symbols…but they’re there
I have a C++ library and a C++ application trying to use functions and classes exported from the library. The library builds fine and the application compiles but fails to link. The errors I get follow this form: app-source-file.cpp:(.text+0x2fdb): undefined reference to `lib-namespace::GetStatusStr(int)’ Classes in the library seem to be resolved just fine by the linker, but free functions and
Find all storage devices attached to a Linux machine [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I have a need to find all of the writable storage devices attached to a given machine, whether or not they are mounted. The dopey way to do
Flex development on Linux, what’s a good free environment? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 8 years ago. Improve this question I would like to develop Adobe Flex applications using Linux and