Software :: Using Command And Script To Build A Program Which Can Do Exception-statistic In Log
Aug 5, 2010
I have a log file and there are many different types of exception in this file. These could be looked as follow:
Code:
One can see there two types of exceptions: ORGNoCompetenceException and SocketException.
I will filter out the name/type of exception and the number of each type of exception. At last, this statistic data will write to file and create a Excel table.
my host is x86_64 and run hosted redhat server5.4 X86_64, i complies my code with -m32 option open, my code run smoothly in my host, but when it installed on redhat9.0 host(x86_32) the error occurs and the output is :"Program terminated with signal SIGFPE, Arithmetic exception" but thought whole my code, there no divide operators,i write the "hello world" program, the same problem also occurs
I'm trying to build a spi program using c++. I'm able to perform half-duplex transfers using the read/write functions, it works perfectly. Now I need to perform a full-duplex transfer, but I'm facing some problems. When I try to receive more than one byte, the slave returns to me only one byte.Ex: I send: FF FF FF FF FF The slave must return: 03 02 00 13 04 But what is happening is:
I'd like to build a .deb file which will contain my Perl program. I just want it to be deployed with dpkg -i on debian systems later. So it's just a matter of having the good arborescence in my .deb package. For that purpose, in the debian/rules file, I'm declaring some dh_install lines in the install rule.
My issue is that I know how to achieve my goal, but only with writing a ton of dh_install lines (one line, for one file...)
example : clean: dh_testdir dh_clean install: build
my build machine is x86 machine that is running ubuntu10.04, my target machine is tegra2 that is running on Andrioid, I wish my program can run under shell of android, as first step , I wrote a simplest assembly program which does nothing, but I got a link error, can somebody help me?
I am new to the whole concept of makefiles, and I'm trying to compile and build my program using a makefile template I have found. My project consists of three directories: "source", where my .cpp files are (source1.cpp, source2.cpp, source3.cpp), "include", where my .h files are (header1.h, header2.h, header3.h), and "obj", where the object files are to be stored (obj1.o, obj2.o, obj3.o). In the project root directory is my makefile, which is as follows:
Code: EXEC = myexe CC = g++ IDIR = include SDIR = source ODIR = obj
I'm tring to run AMDOverdriveCtrl, since they don't have an RPM file for Fedora i tried to compile from source i followed the instruction in the readme files run the make command
and tried to run the application, and i get this error message
Code:
$ AMDOverdriveCtrl Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4,compatible with 2.6), and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).
I want to add a few linux server to our monitoring system (solarwinds).
We have to get this information by snmp.The items we need are: 1-In Byte Transferred on every network interface 2-Out Byte Transferred on every network interface. 3-Memory Usage 4-Memory Free 5-CPU usage 6-Free Disk space on partiotion 7-Uptime
I could not find snmp OID or names for this object to fetch.
I am analyzing memory usage on a Linux system. When I run vmstat -s, I see the following:
waffleman@waffle-iron:~$ vmstat -s 3549184 K total memory 3206708 K used memory 1918012 K active memory 1037320 K inactive memory 342476 K free memory
[Code]...
I know the system has 4096 MB of RAM installed, but why does it show only 3466 MB? Can this be interpreted as total "available" memory? Perhaps the missing 630 MB is being used by the kernel and cannot paged out?
I also tried this on on an Embedded Linux system and saw a similar result. The DRAM chip has 128 MB, but only 124 MB shows up in vmstat.
1. Is that WA% only disk I/O or can it include network IO? 2. How do I identify which processes are making up that WA statistic? 3. Why does iostat report 100% utilization when the drive read/write speeds are under 1MB/s?
The reason I'm asking.
My Oracle stats are saying that the drives are running at about 5MB/s right now, the WA is 55%, and the iostat -m -x is reporting the drives running at 100% utilization with a read/write rate under 1MB/s. The read speed of the drive is 98MB/s (tested with hdparm -tT when I installed the drives)
I know I have a few queries using full tables scans which I'm working on but I'd think that 100% utilization should be running at the full 98MB/s.
I want to try to identify which process (most likely and oracle one) is using the 100% utilization/55% WA.
I have build-essential, but make command not working I have build-essential package, but there is still a problem with make command. When I run it in a directory, it shows following message: mudassar@javaDev-1:~/Desktop/gwget-0.99$ make make: *** No targets specified and no makefile found. Stop. When I explicitly specify a make file, the following message appears:
I am able to build a shared library under solaris with /usr/local/bin/g++ -G -o output.so file1.o file2.o file3.o. How do I build the shared library under linux using the same files? I have tried to use the same command /usr/local/bin/g++ -g -o but I got some undefined references, even if those references are defined in one of the object files.
I'm trying to build the package zaptel on debian, but I'm encountering two errors: 1- When I try to run the "make menuselect" command, I get an error stating that I need ncurses which is missing. I tried to get it installed but didn't get to do it yet. 2- After that, there's the command "make" I think it's to build the package. Yet again this fails, and the error I get is "you do not appear to have the sources for the 2.6.26-2-686 kernel installed".
I'm new to LinuxQuestions and this is my first post. I'm trying to build rrdtool to install Cacti and encountered the following problem: 'make' step returns an error messages:
Code: ./.libs/librrd.so: undefined reference to `xmlTextReaderGetParserLineNumber' collect2: ld returned 1 exit status What I have doneDownload and build the latest version of pkg-config, glib, pixman, cairo, pango, atk, gtk+ from official sites. Download rrdtool source Set PKG_CONFIG_PATH correctly
[Code]...
There is actually another problem with the computer which is "The Nautilus application has quit unexpectedly" everytime I open File Browser application or right-click>Properties a file/directory. This happen only after installing cairo and pango and I don't know how to revert to old version. Since there are a lot of log files so I'm very confused. Can someone give me a direction on how to resolve this?
I have to get soem statistic about interfaces from /proc/net/dev. but statistic on this file is reset when get reach more than 4G byte.I think linux has limitation on this case.
Just i want one clarification regarding building libraries. I have a "c" program. i want to compile that program for ARM processor and i want to build ".a and .so" libraries for that c program.
im trying to build a simple program for my C programming class, this is the source code
#include <stdio.h> int main() { int length, width, length, height, area, perimeter; perimeter = width + length + height; area = width * length + heigth;
[Code]...
i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?
I'm in love with my Opensuse 11.2. Love my KDE 4.4. The only thing I miss from my Ubuntu installation, is the ability to use Boxee. I would be more than willing to compile Boxee from source. I only have 2 problems with that:
1) I don't know where I can find all the build-deps or what they are for that matter to build Boxee.
2) I'm running on a Netbook. Yes, my measly Intel Atom is no fun for compiling and building.
What are my options/what can I do to get Boxee up and running on 11.2? I've tried searching on build service for an RPM, but I think due to legal restrictions, Boxee can't be on there.
looking for LIBEVENT... configure: error: Package requirements (libevent >= 2.0.10) were not met: In order to build transmission 2.21.I need libeventnew version of transmission,I need to build libevent-dev >= 2.0.10 and installed first.But I can't get any information about building development files for libevent.
as I'm advancing in building some nice rpm I finally wanted to install on of my gems also the build was successful the actual install fails with missing dependencies.
Code:
$ rpm --root /home/sascha/rpmbuild/ -i ./RPMS/x86_64/memcached-1.4.1-2.x86_64.rpm error: Failed dependencies: libc.so.6()(64bit) is needed by memcached-1.4.1-2.x86_64 libc.so.6(GLIBC_2.2.5)(64bit) is needed by memcached-1.4.1-2.x86_64
I have an init script running as a special build user which performs an automated build that fails with (Too many open files).I updated /etc/security/limits to allow the special user more open files, but that didn't work - the init script still isn't allowed more open files.Here's a demonstration of the problem;
Trying to install SW 13.1 (on DVD) on the following system: M/B Intel: DX38BT Processor Intel Core 2 Quad Q6700 - 2.66GHz, 8MB Cache, 1066MHz FSB, Socket 775 Memory Corsair Dual Channel 8192MB PC10600 DDR3 1333MHz Memory (4x2048MB) Graphics Diamond Radeon HD 3850 Video Card - Viper, 512MB GDDR3, PCI Express 2.0 P/S Ultra 1000W
My goal is to install the i386 build on one partition and the 64-bit build on another. I have been away from Linux for a while and am sick to death of Win7, want to come home. :-}
Booted on i386 side of DVD, system freezes after a couple of lines that start with ATA2. Does not respond to 3 finger salute, ctrl-c, nothing. Have to press reset. I have tried both huge.s and hugesmp.s kernels
Booted on 64-bit side, comes up fine. I performed the install, selected for automatic lilo install. Lilo install hung but I was able to reboot. I booted off the 64-bit side again, entered the following: huge.s root=/dev/sde3 rdinit= ro It booted fully to the login prompt but the keyboard does not work, no input.