Ò»¸ö¼òµ¥µÄlinuxÏÂÍøÂç³ÌÐòʵÀý£ÍøÂç±à³ÌÈëÃÅ ÊÕ²Ø
http://blog.csdn.net/manio/archive/2006/10/13/1333202.aspx
/*
server
*/
#include
<
stdio.h
>
#include
<
sys
/
types.h
>
#include
<
netinet
/
in
.h
>
#include
<
sys
/
socket.h
>
#include
<
netdb.h
>
#include
<
unistd.h
>
#include
<
string
.h
>
#include
<
arpa
/
inet.h
>
#define
PORT 8848
#define
BACKLOG 1
main()
{
int
listenfd,connectfd;
struct
sockaddr_in server;
struct
sockaddr_in client;
int
sin_size;
if
(( listenfd
=
socket(AF_INET, SOCK_STREAM,
0
))
==
-
1
)
{
perror(
"
Creating socket failed.
"
);
return
0
;
}
int
opt
=
SO_REUSEADDR;
setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR,
&
opt,
sizeof
(opt));
bzero(
&
server,
sizeof
(server));
server.sin_family
=
AF_INET;
server.sin_port
=
htons(PORT);
server.sin_addr.s_addr
=
htonl(INADDR_ANY);
printf(
"
binding...
"
);
if
(bind(listenfd, (
struct
sockaddr
*
)
&
server,
sizeof
(
struct
sockaddr))
==
-
1
) {
perror(
"
Bind error
"
);
ret
Ïà¹ØÎĵµ£º
×÷Õߣºlch
matlab
for
Linux
°²×°
(
°²×°·½·¨ÎĵµÊÇ´ÓÍøÉϲé×ÊÁÏ+
ʵ¼ùµÃµ½µÄ )
Ò».
°²×°
1.
Ê×ÏÈÐèÒª½¨Á¢°²×°Ä¿Â¼
[wzh@localhost ~]$ su
[root@localhost ~]$ mkdir /usr/matlab
2.
È»ºó¼ÓÔØ¹âÅÌÓ³Ïñ
[root@localhost wzh]# mount -o loop -t iso9660
/mnt/hda7 ......
1.JDK1.6°²×°×¼±¸
¡¡¡¡´Ósun¹«Ë¾ÍøÕ¾www.sun.comÏÂÔØlinux°æ±¾µÄjdk,ÎÒÏÂÔØµÄ°æ±¾ÊÇJDK 6 Update 7,
¡¡¡¡µØÖ·http://java.sun.com/javase/downloads/index.jsp
¡¡¡¡jdk-6u7-linux-i586.bin,´ò¿ªÖÕ¶Ë£¬ÓÃcdÃüÁî½øÈëjdkËùÔÚĿ¼,Ö´Ðи´ÖÆÃüÁî
¡¡¡¡sudo cp jdk-6u7-linux-i586.bin /usr
¡¡¡¡¼´½ ......
±¾ÎĽéÉÜÈçºÎÔÚCentos 5.3Éϰ²×°Quartus II 7.2 £¨ÕâÊÇÎÒÊÖÍ·Äǿ鿪·¢°æÅäÌ×°æ±¾£¬ÆäËû°æ±¾Ã»ÓÐÊÔ¹ý£¬¹À¼ÆÒ²²î²»¶à£©
1. ½øÈë¹âµúĿ¼
[xzeng@xzeng-desktop linux]$ pwd
/media/Altera Software/quartus/linux
2. ÔËÐÐinstall½øÐа²×°
[root@esig linux]# ./install
Quartus II 7.2 Installation Script for UNIX W ......