How to increase command line Arguments Size in UNIX/LINUX???
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to increase command line Arguments Size in UNIX/LINUX???
Sir,
I'm using NCR's MP-RAS. I am trying to install PHP5.1.2 on MP-RAS with Apache2.
I successfully installed Apache2 on MP-RAS. when i tried to install PHP5.1.2 it is failing to execute long command line. How to increase command line length?. For PHP, I run the ./configuration with default options, and its completed. During the make phase, it is generating php executable file with all library files, then that line becomming too long and getting the error.
UX:sed: ERROR: Output line too long
I tried the same installation process on RHEL4, and it was installed on RHEL4. On NCR's MP-RAS only I am getting this error. It is failing to execute that much long command line. What to do to come out of this problem?
All this is a single line. I think Command buffer is not suficient to process this long line. I am thinking that this is because of limit on command buffer size in MP-RAS. During configuration it is giving Max Command line size .. 8192. If we are able to increase command buffer size, it may handle this line. Can we do that? Please help me, How to handle this problem. Or Can we split this into two and run seperately? If so how to do that? Or any alternative solution please suggest to solve this problem. Thanks in advance.
Thanks & Regards
-------------------------
SunilKumar. V
On the system, this limit is given by ARG_MAX to the exec() functions. You may see it with sysconf(_SC_ARG_MAX) or "getconf ARG_MAX" in the shell. It's 131072 (128K) on my system. Any limit shorter than this are imposed by tools. Since it is calling /bin/sh you may try using shell expansion (ie, ext/pcre/pcrelib/pcre_*.lo and so on).
Hi primo,
Thanks for your reply. getconf ARG_MAX is giving 20480 in my system. Can we increase this limit? How to increase this limit? I tried in the way you suggested, like ext/pcre/pcrelib/pcre_*.lo still i am getting the same error.
UX:sed: ERROR: Output line too long
UX:sed: ERROR: Output line too long
UX:sed: ERROR: Output line too long
gcc: ext/sqlite/libsqlite/src/btr: No such file or directory
while running it is expanding *.lo and generating the same long line.
please help to solve this problem.
thanks in advance
How to increase command line Arguments Size in UNIX/LINUX??? Reply to Thread
Hi,
I am trying to install GNU sed-4.1.5 thinking that the existing sed is failing to hanled that much long line. Now iam getting the following error installing GNU sed.
UX:sed: ERROR: Command garbled: install_sh=/home1/sun/sed-4.1.5/config/install-sh
UX:sed: ERROR: Command garbled: install_sh=/home1/sun/sed-4.1.5/config/install-sh
How to overcome this. Pls help me
Thanks for ur suggestions
Man, maybe you're using HP-UX. There's a forum for other Unixes here at LQ but an HP site may be better. In this case, the install-sh script is still trying to use your own system's sed to run. What the install-sh script attempts to emulate is this: http://www.freebsd.org/cgi/man.cgi?q...ts&format=html
A hack would be to copy the compiled sed by hand to a directory in your path (I wouldn't overwrite the system one) and try a "make install" a second time.
Hi,
I am not using HP-UX, I am using NCR's MP-RAS OS. After i installed GNU sed, i tried to install PHP. Now i am getting new error
/usr/ccs/lib/libm.a(asin.o)(.text+0x22b): In function `asin_acos':
: undefined reference to `_mwvalidcheckl'
/usr/ccs/lib/libm.a(sinh.o)(.text+0x9a): In function `sinh_exc':
: undefined reference to `_mwoflocheckl'
/usr/ccs/lib/libm.a(sinh.o)(.text+0x214): In function `__AIR_cosh':
: undefined reference to `_mwoflocheckl'
/usr/ccs/lib/libm.a(sinh.o)(.text+0x363): In function `__AIR_sinh':
: undefined reference to `_mwoflocheckl'
/usr/ccs/lib/libm.a(tanh.o)(.text+0xeb): In function `__AIR_tanh':
: undefined reference to `_mwoflocheckl'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
Does PHP works on MP-RAS? help me to solve this problem
A quick search on Google for "_mwoflocheckl" reveals that you must add -lmw to the compiler linking command. Try adding "LDFLAGS += -lmw" to the Makefile.
Thank you very much primo.
after adding -lmw, make was succeeded.
Now, I installed PHP5.1.2 and Apache2.2.0 on NCR's MP-RAS system.
Solution for the first problem,
UX:sed: ERROR: Output line too long
UX:sed: ERROR: Output line too long
UX:sed: ERROR: Output line too long
gcc: ext/sqlite/libsqlite/src/btr: No such file or directory
This problem was solved by installing GNU sed-4.1.5.
Second is linking math library
Modified the make file to add the linker options -lmw.
With these changes i completed the installation of PHP on MP-RAS.
Thanks once again for suggestions and spending time towards this problem.
Nice!
It would be helpful that you e-mail the details on what you have done to GNU sed maintainers so they adapt their software to your system. I've never heard of this MP-RAS.
I forgot to post how i resolve the sed problem:
It seems sed-4.1.5 depends on GNU sed itself. So first install older version of GNU sed (sed-3.0.2) and add it to PATH variable and then install GNU sed-4.1.5 without any problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.