免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1515 | 回复: 3
打印 上一主题 下一主题

[文本处理] make&&make install >abc.txt 2>&1 为什么终端还是会有输出 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-06-29 10:48 |只看该作者 |倒序浏览
本帖最后由 飘动de心 于 2016-06-29 10:55 编辑

make&&make install >abc.txt 2>&1 为什么终端还是还是会有输出,./configure >abc.txt 2>&1就没有
比如
  1. [root@localhost swoole-src-swoole-1.8.4-stable]# make &&make install >11.txt 2>&1
  2. /bin/sh /opt/swoole-src-swoole-1.8.4-stable/libtool --mode=install cp ./swoole.la /opt/swoole-src-swoole-1.8.4-stable/modules
  3. cp ./.libs/swoole.so /opt/swoole-src-swoole-1.8.4-stable/modules/swoole.so
  4. cp ./.libs/swoole.lai /opt/swoole-src-swoole-1.8.4-stable/modules/swoole.la
  5. PATH="$PATH:/sbin" ldconfig -n /opt/swoole-src-swoole-1.8.4-stable/modules
  6. ----------------------------------------------------------------------
  7. Libraries have been installed in:
  8.    /opt/swoole-src-swoole-1.8.4-stable/modules

  9. If you ever happen to want to link against installed libraries
  10. in a given directory, LIBDIR, you must either use libtool, and
  11. specify the full pathname of the library, or use the `-LLIBDIR'
  12. flag during linking and do at least one of the following:
  13.    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  14.      during execution
  15.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  16.      during linking
  17.    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  18.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

  19. See any operating system documentation about shared libraries for
  20. more information, such as the ld(1) and ld.so(8) manual pages.
  21. ----------------------------------------------------------------------

  22. Build complete.
  23. Don't forget to run 'make test'.
复制代码

论坛徽章:
0
2 [报告]
发表于 2016-06-29 11:01 |只看该作者
本帖最后由 飘动de心 于 2016-06-29 11:04 编辑

好像是make 和make install 要分开来写?是这样么
make >11.txt &&make install>11.txt 2>&1

论坛徽章:
0
3 [报告]
发表于 2016-06-29 11:17 |只看该作者
make >11.txt 2>&1 &&make install>>11.txt 2>&1
make需要定向
make install也需要重定向
同时make install时>>这样才能不覆盖以前的

论坛徽章:
60
20周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之北京
日期:2016-07-06 15:42:0715-16赛季CBA联赛之同曦
日期:2016-06-12 10:38:0915-16赛季CBA联赛之佛山
日期:2016-05-27 11:54:56黄金圣斗士
日期:2015-12-02 11:44:35白银圣斗士
日期:2015-11-25 14:32:43白银圣斗士
日期:2015-11-23 12:53:352015亚冠之布里斯班狮吼
日期:2015-10-21 16:55:482015亚冠之首尔
日期:2015-09-01 16:46:052015亚冠之德黑兰石油
日期:2015-08-31 11:39:192015亚冠之萨济拖拉机
日期:2015-08-28 21:06:5315-16赛季CBA联赛之广东
日期:2016-07-12 14:58:53
4 [报告]
发表于 2016-06-29 16:03 |只看该作者
  1. [root@localhost swoole-src-swoole-1.8.4-stable]# { make &&make install; } &>11.txt
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP