General :: Compile Own Application Using Busy Box?
Nov 18, 2010how compile our own application using busy box
View 4 Replieshow compile our own application using busy box
View 4 RepliesI am going to compile and install my first linux application from the command line. The program is the port scanner program NMAP, and I am looking at the documentation to learn how to do it. I saw this thread [URL], and I just want to make sure I understand what it is I'm doing.
bzip2 -cd nmap-5.35DC1.tar.bz2 | tar xvf -
cd nmap-5.35DC1
./configure
make
su root
make install
"bzip2 -cd nmap-5.35DC1.tar.bz2 | tar xvf -"
Here I am calling the bzip2 program to work with a specified file. look for the file nmap-5.35DC1.tar.bz2 in the current diretory (-cd) and to pipe (redirect) something, this is where I get lost, I think. And I know what x & v mean but not f, or what that has to do with the previous commands.
cd nmap-5.35DC1
Chage to the named directory.
./configure
I assume this is a command?
make
Builds an executable
su root
make install
not sure what the difference is between this and the above.
I am new to the embedded domain.I am learning about cross compilation. Just i want to compile an application and an driver file for ARM platform. I have downloaded the toolchain binaries from [URL]..
View 3 Replies View RelatedI have Slackware 13-64 bit and I would like to cross-compile some Fortran and C programs to windows 32 and 64 bit applications. The Linux versions utilize X11 for the graphical users interface. I have tried MINWG but I could not get it to work, either in pre-built binary or source code form. Is there a binary version that works on Slackware 13? Alternatively, is there another method available?
View 1 Replies View RelatedI need to develop application for 32 bit environment.
Before to install FC11 64, I used FC 9 and FC 10 i386 version without any issues.
I'm lookking for a tutorial about use 32 bit development environment in a 64 bit OS.
How or where I can setup FC11 for this features.
I'm relatively new to Linux and had a question regarding the GCC compiler.I realize that I can write an application and compile it using the GCC complier.I can even sell it (or not) . My question is do I have to make my source code public available also ?
View 5 Replies View RelatedI have the source of the application I want to modify, as well as the list of dependencies I need in order to compile. I got the source code for those and compiled/installed them. I'm fairly sure that all of the dependencies are installed. However, when I go to run the compiler it crashes while parsing some of the code.
I had the application installed before, and it ran. After tinkering around trying to get the source to compile, the app no longer runs either. It crashes, and if run from the CLI, spits out something about not finding one of the files from the SDL library.
So obviously I did something wrong to mess everything up, because I'm in a deeper hole than when I started. Anyone know how I would go about fixing this? Or even starting with a clean slate so that I can have another go at it?
Recently I was trying out a boot disk I had made, and basically, I switched it off several times due to it booting the completely wrong kernel. Now, I'm getting to the stage "Checking File systems" and then comes up [Failed]. I then get a message saying Reboot required, and that it will reboot in 15 seconds, just a few seconds before it reboots I get "/dev/shm not mounted, /dev busy" or something similar.
I've booted up my sysresccd, ran "fsck.ext4 -fcv /dev/sda2" to force a check and scan for any bad blocks, it came up clean, then I rebooted and got the same error, so I copied the kernel and system.map over to /boot to make sure there's no corruption and reinstalled initscripts and util-linux-ng, rebooted, same error.Tried different kernels, I've checked fstab and menu.lst, no problems there, so I still don't get why I still get the same problem.
So I just upgraded my ubuntu machine to 9.10 and when I try to change my password with passwd it says,
Code:
passwd: Authentication token lock busy
passwd: password unchanged
[code]....
I have a log file which is continously being accessed. Now I want to delete the first line without disturbing the file.Is it possible? The Issue is the log file is being provisioned with ^@^@^@ characters in the first line occupying huge space.So I need to get rid of that. I dont have time to work with root cause but just a script to reduce this space.
View 3 Replies View RelatedWhile trying to compile one of the software application I am giving "cmake ." command but getting the below error :
I have downloaded "libpqxx-3.0.2" and have installed it.
libpqxx.a and libpqxx.la have got installed under /usr/local/lib.
Why am I still getting this error?
I need to tune the mysql and apache server for the comparatively busy webserver. My scenario is like this.
1. The Web request is around 2000 request at a time or more.
2. Each web request will generate one mysql query.
3. The query to database is all read.
4. This server load will be at peak for around 3-4 hours after that the load will subside. As the task will be published, around 300,000 will be viewing the page.
5 quad servers are deployed, load is balanced via DNS but performance is not as expected. Centos 5.5 is used as OS. Top command shows The mysql process is around 185%!
Named has been working fine for months on Fedora core 14 with updates current.a few days ago it stopped working. I tried a service named restart and received the error message: stopping named: umount:/var/named/ chroot/var/named: device is busy.I tried using kill process, which did not work. However if I use kill 9 <named process>, followed by service named stop, I can then restart the service and it works for a number of hours (less than a day), then stops again and produces the error message above when I try to restart it.I can get it working again using the procedure above, but only temporarily.
View 7 Replies View RelatedUse python as example, I have 64bit python 2.4.3 yet I can't found rpm for 32bit one so I try to build it.Use default make or make --enable-readline is ok, python make cannot use CFLAGS, can use OPT and LDFLAGS to add -m32, yetit seems can only search for 64bit lib, or else crush.[Moderator edit: Moved from CentOS-4 to CentOS-5 forum.]
View 9 Replies View RelatedSo, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
We have been developing a portable 3D game/graphics/simulation application for some time on 32-bit ubuntu 8.04 LTS. Finally we are ready to create versions that take advantage of the extra CPU/SIMD registers, instructions and efficiencies available only in 64-bit mode executables.So we installed 64-bit ubuntu 9.04 on our computers with the intention to continue development on both 32-bit and 64-bit versions of our applications. I assume this means the 32-bit version of the stdc++ library is not installed, or is not installed in the expected location. But I don't know what to do about it. I do not find an obvious solution. I'm guessing the 64-bt stdc++ library was installed when we installed the "build-essential" package. But I don't see any "build-essential32" or equivalent, nor "libc++32" or equivalent listed in the package manager application.How do we configure our computers to create both 32-bit and 64-bit executables?
The IDE appears to successfully compile all our C and ASM source-code files before it fails this link step (I presume). For some odd reason the IDE stops trying to build after this initial link error, so other errors might be waiting to happen after this one is solved.
A few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ca36fee
[code]....
Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:
umount /data/
umount: /data/: not mounted
If I want to mount the volume I get the following error:
mount -a
mount: /dev/mapper/gegevens-Data already mounted or /data busy
Am wondering if looking at the CPU process queues, vs CPU% busy, are a better indication of whether an upgrade is needed.
Afterall, processes can still queue up to be processed even if "top" doesn't shown CPU 100%. Say if it's indicating 50% busy within the top output, it's only saying that 5 out of 10 times sampled, the CPU was busy. But a process may arrive to be processed at any time, and if it arrives just when the CPU is processing something it needs to wait in the queue. Am I making senses?
How many processes queued up would suggest an upgrade is required of the CPU? I've read online (believe it's Microsoft) that 2 is the figure.
Code:
HP 210 Mini
Fedora 14 xfce
2.6.35.11-83.fc14.x86_64
I have inserted my handy drive. However, when I right click and select unmount I get the following message:
Code:
An application is preventing the volume "New Volume" from being unmounted
So I try from the command line:
Code:
umount /dev/sdb1
And I get the following message:
Code:
umount: /media/New Volume: device is busy. All I have done is copied some files to my handy drive. So I am not sure what process is keeping my handy drive busy.
Is there any command that I can use to see what process of anything else is using the handy drive?
I am not sure when this started for me, but I think in a recent update of Firefox. I am running Ubuuntu 9.10 Karmic Koala. I am currently running FF 3.5.6. When I click on a link in a page, or refresh the page, the Arrow/Pointer cursor stays the same in place of the normal busy cursor that I am used to. This is more of an annoyance than a real functional issue, as I can't tell if the page is working except to see the tab showing loading, and the status bar in FF. I have searched the forums, and google/linux, but have not found a cause, nor a fix.
I also use Opera and Chrome at times and the busy cursor works there as expected. I also use Thunderbird and it is working there. So, I believe it is only related to FF. My addons are as follows, but I haven't added anything recently, and it was working before.
Extensions:
ColorfulTabs 4.1
Live HTTP Headers 0.15
Ubuntu Firefox Modifications 0.8
Web Developer 1.1.8
[Code].....
I am saying good by to windows at work.I've had it! But We use groupwise email client at work, but I can't figure out how to do a busy search in evolution when setting up appointments.Also, how do I go about syncing up the novell contact list?
1. how to do busy search in evolution.
2. how to sync corporate contact list.
I have a 250gb External HD and wanted to format it using the disk utility but every time I try Ubuntu tells me that the drive is busy.
How is it busy? I have nothing opened and haven't used it in anyway other than plugging it in. It doesn't even tell me what's using it.
I am trying to set up a mdadm raid in a new machine that I am building as a home theatre PC. the machine boot just fine from /dev/sdc running ubuntu 9.10 However in gparted /dev/sda and dev/sdb show to be part of /devmapper/sil_ajbicfacbaej
Both dev/sda and /dev/sdb were drives that used to be part of a sil hardware raid on a previous machine. I would like to use them as a new mdadm raid on this new machine the old hardware card was really quite slow. the drives are now pluged into the MB and should be much faster there.
fdisk -l shows this
It produces no errors but does not remove it.
I have 2 HDs, an old one with LVM (sda) with two partitions, sda1 and sda2, and the new one without LVM (sdb). I want to format the old sda device. I tried with sfdisk, but it says that the sda is busy:
But there is no call in /etc/fstab to sda, I did a /sbin/swapoff -a, and this is the output of df:
lsof tells me no one is using sda, sda1 or sda2.
So, why does sfdisk refuse to work?
Lately my second HDD won't mount anymore. It always states that it is Busy. And wel I need the data on it so formatting isn't an option.
Code:
root@usr-desktop:/home/usr# sudo mount /dev/sda /media/Algemeen -o force
mount: /dev/sda already mounted or /media/Algemeen busy
SOLVED: Thread can be marked solved, Motherboard failure / Cable Replacement.
I am dual-booting my Gateway laptop with Windows XP Media center Ed. and Ubuntu Notebook 10.10. Several weeks ago I was in the midst of downloading a program from the software center and my system starts running slow (this is in the Ubuntu kernel, not the Windows OS). So I decided to cold-boot the laptop in mid-download. When it boots back up, I get dropped to a grub-rescue menu that states the following:
Code:
Now, the only way I can even remotely use my laptop at the moment is to use my Live USB with the corresponding version of Ubuntu Netbook 10.10 or the Live CD I made with Ubuntu 10.04 on it (I'll explain why I made this below).
I read somewhere that I need to run fsck on my device to try to fix the partition, which btw my Ubuntu partition on my device is /dev/sda5, and before someone suggests it, I even tried using GParted and it doesn't work.
The reason I made a 10.04 CD is because I read somewhere that using the fsck from 10.04 might be more effective (for whatever reason) than the 10.10 fsck version.
I'd also like to add that I'm incapable of booting onto my Windows OS at all, yet I can access the partition from my Live CD/USB. the Ubuntu partition however, I can neither access or mount.
I tried running fsck on the entire device partition table, and I get the following:
Code:
This is me running fsck from the 10.04 version, I get a similar msg from the 10.10 Live USB but replace fsck.ext2 with fsck.ext4 in the message.
I'm trying to format my main HDD and when I go to click format it says unable to format it says "Unable to format, device busy" I click details and it says "One or more partitions are busy on /dev/sda" I tried rebooting several times and no luck.
View 6 Replies View Relatedi am trying to keep a backup of my root on a second partition using rsync.
sda1 system
sda2 system-BAK
sdb1 /home
[code]....
I've installed aufs in order to seemlessly union two filesystems over /usr. One branch is the plain old, existing /usr directory; it's not mounted from a separate filesystem or anything. The other is a /usr on a microsd card. This is what I've added to /etc/fstab:
#the microsd mounted on /aufs/internal_microsd
/dev/mmcblk0p1 /aufs/internal_microsd/ ext2 defaults,noatime 0 0
#the aufs /usr union
[code]...
When booting I am being dropped to initramfs/busy box heres the error: Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/dev-root does not exist. Dropping to a shell!
BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)