LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1437|回复: 10

安装squid时要执行的make make install在什么地方??

[复制链接]
发表于 2005-1-3 22:04:55 | 显示全部楼层 |阅读模式
Linux架设代理服务器
  1) 下载Squid代理服务器软件squid-2.2.STABLE3-src.tar.gz;
  2) 执行tar xzxf squid-2.2.STABLE3-src.tar.gz
  3) 执行./configure
  4) 执行make,make install安装到/usr/local/squid目录下;
问里的make,make install是什么文件?解压的文件里没有呀??
 楼主| 发表于 2005-1-3 22:47:59 | 显示全部楼层
刚才在网上看了make ,make install是命令,我直接输入却没得到相应回应。。make 和make install后要加参数吗??
 楼主| 发表于 2005-1-3 22:49:56 | 显示全部楼层
对了我是在root 用户下进行的,会和这有关吗??
发表于 2005-1-3 23:50:10 | 显示全部楼层
1) 下载Squid代理服务器软件squid-2.2.STABLE3-src.tar.gz;
  2) 执行tar xzxf squid-2.2.STABLE3-src.tar.gz
  3) 执行./configure
  4) 执行make,make install安装到/usr/local/squid目录下;
问里的make,make install是什么文件?解压的文件里没有呀??
tar zxvf squid-2.2.STABLE3-src.tar.gz
cd squid* 进入解压后的目录
./configure && make && make install && echo "done........."
在该目录中执行上述命令
如果最后你看到了done.......就代表成功了。
 楼主| 发表于 2005-1-4 08:16:26 | 显示全部楼层
执行过./configure 这好像是运行configure
我在那个目录里也运行make 和make install没反映呀,
那个命令的正常格式是什么呀???
能列一下吗??一条命令一行。谢谢了
发表于 2005-1-4 08:53:11 | 显示全部楼层
Post by hupan
执行过./configure 这好像是运行configure
我在那个目录里也运行make 和make install没反映呀,
那个命令的正常格式是什么呀???
能列一下吗??一条命令一行。谢谢了

要看具体情况而定啊,一般而言,以tar.gz或tar.bz2结尾的是:
  1. 1.tar xvfz squid***.tar.gz
  2.            2.cd squid***
  3.            3. ./configure
  4.            4. make ==>就是编译联接,make命令使用当前目录的Makefile
  5.            5. make install ==>其实就是把生成的可执行文件拷贝到指定目录
复制代码

最好是看看一下目录里的README或INSTALL之类的说明
 楼主| 发表于 2005-1-4 09:05:15 | 显示全部楼层
文件以解压到squid-2.2.STABLE1
[root@localhost root]# cd squid-2.2.STABLE1
[root@localhost squid-2.2.STABLE1]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
请问这是什么错误??
发表于 2005-1-4 10:41:43 | 显示全部楼层
Post by hupan
文件以解压到squid-2.2.STABLE1
[root@localhost root]# cd squid-2.2.STABLE1
[root@localhost squid-2.2.STABLE1]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
请问这是什么错误??

老大啊,你连c的编译器都没啊
发表于 2005-1-4 10:49:08 | 显示全部楼层
Post by hupan
文件以解压到squid-2.2.STABLE1
[root@localhost root]# cd squid-2.2.STABLE1
[root@localhost squid-2.2.STABLE1]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
请问这是什么错误??

请先安装gcc,你是不是在gentoo下?
 楼主| 发表于 2005-1-4 21:26:02 | 显示全部楼层
安好了也能执行了,可有出现这个晕~
[root@localhost squid-2.2.STABLE1]# make
Making all in lib...
make[1]: Entering directory `/root/squid-2.2.STABLE1/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/squid-2.2.STABLE1/lib'
Making all in scripts...
make[1]: Entering directory `/root/squid-2.2.STABLE1/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/squid-2.2.STABLE1/scripts'
Making all in src...
make[1]: Entering directory `/root/squid-2.2.STABLE1/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/squid-2.2.STABLE1/src'
Making all in icons...
make[1]: Entering directory `/root/squid-2.2.STABLE1/icons'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/squid-2.2.STABLE1/icons'
Making all in errors...
make[1]: Entering directory `/root/squid-2.2.STABLE1/errors'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/squid-2.2.STABLE1/errors'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表