LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-03-2006, 12:51 AM   #1
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Rep: Reputation: 15
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?

Here I am giving the command line generated by make file:
/bin/sh /home1/sun/php-5.1.2/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -I/usr/include -g -O2 -L/usr/ucblib -L/usr/local/lib -R /usr/ucblib -R /usr/local/lib ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_dfa_exec.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_printint.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_ucp_findchar.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/ctype/ctype.lo ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/iconv/iconv.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pdo_sqlite/sqlite/src/attach.lo ext/pdo_sqlite/sqlite/src/auth.lo ext/pdo_sqlite/sqlite/src/btree.lo ext/pdo_sqlite/sqlite/src/build.lo ext/pdo_sqlite/sqlite/src/callback.lo ext/pdo_sqlite/sqlite/src/date.lo ext/pdo_sqlite/sqlite/src/delete.lo ext/pdo_sqlite/sqlite/src/expr.lo ext/pdo_sqlite/sqlite/src/func.lo ext/pdo_sqlite/sqlite/src/hash.lo ext/pdo_sqlite/sqlite/src/insert.lo ext/pdo_sqlite/sqlite/src/legacy.lo ext/pdo_sqlite/sqlite/src/main.lo ext/pdo_sqlite/sqlite/src/os_mac.lo ext/pdo_sqlite/sqlite/src/os_unix.lo ext/pdo_sqlite/sqlite/src/os_win.lo ext/pdo_sqlite/sqlite/src/pager.lo ext/pdo_sqlite/sqlite/src/pragma.lo ext/pdo_sqlite/sqlite/src/prepare.lo ext/pdo_sqlite/sqlite/src/printf.lo ext/pdo_sqlite/sqlite/src/random.lo ext/pdo_sqlite/sqlite/src/select.lo ext/pdo_sqlite/sqlite/src/table.lo ext/pdo_sqlite/sqlite/src/tokenize.lo ext/pdo_sqlite/sqlite/src /analyze.lo ext/pdo_sqlite/sqlite/src/trigger.lo ext/pdo_sqlite/sqlite/src/update.lo ext/pdo_sqlite/sqlite/src/utf.lo ext/pdo_sqlite/sqlite/src/util.lo ext/pdo_sqlite/sqlite/src/vacuum.lo ext/pdo_sqlite/sqlite/src/vdbeapi.lo ext/pdo_sqlite/sqlite/src/vdbeaux.lo ext/pdo_sqlite/sqlite/src/vdbe.lo ext/pdo_sqlite/sqlite/src/vdbemem.lo ext/pdo_sqlite/sqlite/src/where.lo ext/pdo_sqlite/sqlite/src/parse.lo ext/pdo_sqlite/sqlite/src/opcodes.lo ext/pdo_sqlite/sqlite/src/alter.lo ext/pdo_sqlite/sqlite/src/vdbefifo.lo ext/pdo_sqlite/sqlite/src/experimental.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_sxe.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/sqlite/sqlite.lo ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo ext/sqlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo ext/sqlite/libsqlite/src /pragma.lo ext/sqlite/libsqlite/src/vacuum.lo ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo ext/sqlite/libsqlite/src/trigger.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lresolv -lm -lnsl -lxml2 -lm -lsocket -lnsl -lxml2 -lm -lsocket -lnsl -lxml2 -lm -lsocket -lnsl -lxml2 -lm -lsocket -lnsl -lxml2 -lm -lsocket -lnsl -lxml2 -lm -lsocket -lnsl -o sapi/cgi/php


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
 
Old 05-03-2006, 02:10 AM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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).
 
Old 05-03-2006, 08:34 AM   #3
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
Old 05-04-2006, 01:11 AM   #4
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Original Poster
Rep: Reputation: 15
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

-Sunil
 
Old 05-04-2006, 01:23 AM   #5
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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.
 
Old 05-04-2006, 05:41 AM   #6
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Original Poster
Rep: Reputation: 15
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

Thanks
sunil
 
Old 05-04-2006, 07:01 AM   #7
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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.
 
Old 05-05-2006, 01:08 AM   #8
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Original Poster
Rep: Reputation: 15
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.

- SunilKumar
 
Old 05-05-2006, 02:05 AM   #9
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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.
 
Old 03-31-2009, 10:04 AM   #10
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Original Poster
Rep: Reputation: 15
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.
 
Old 03-31-2009, 11:47 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
sed has a 'bootstrap' build script which can be used to build it on system without sed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux/Unix Command to find RAM size? ssnkumar Linux - General 9 09-09-2009 09:38 AM
alsamixer command line arguments dereko Debian 3 09-29-2008 02:06 PM
command line arguments containing ( Lotharster Linux - Newbie 3 01-05-2006 08:43 AM
Increase the command line buffer size Akiles Linux - General 3 04-19-2005 11:17 AM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 02:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration