FreeBSD ports unfreeze

Fiuh, finally ports unfreeze

I thought my system is crash when I try to update ports, until I red about Xorg 7.2 ports committed 🙂

Yeah, big ports


kongja# csup -g -L2 ports-supfile -h

Parsing supfile “ports-supfile”
Connecting to
Cannot connect to 2001:468:902:201:209:3dff:fe11:442c: No route to host
Connected to
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Updating collection ports-all/cvs

Continue reading

in Unix | 125 Words

Mysql 4.0 and Mysql 4.1 Compability

My friend install serendipity (blog engine) in his laptop with mysql version 4.1.21 and dumping sql of his blog. When I try to restore sql file in his PC I got error message :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\appserv\mysql\bin

C:\AppServ\mysql\bin>mysql -uroot -p alam < blog.sql
Enter password:
ERROR 1064 at line 21: You have an error in your SQL syntax. Check the manual t
hat corresponds to your MySQL server version for the right syntax to use near ‘DEFAULT CHARSET=latin1’ at line 12


Then I realize that mysql server in my friend pc using 4.0.16, DEFAULT CHARSET=latin1 is everywhere in his sql file , this part not needed in mysql 4.0.16


Quick Solution is delete that part.

Still open sql file in wordpad, I choose replace, find DEFAULT CHARSET=latin1 with nothing . Press ‘Replace All’ button. Save the file and try to restore new sql file.


Success 🙂

Overwrite FreeBSD ports

Upgrade ports is easy, using portupgrade. Even portupgrade can upgrade it’s own program 🙂

The problem come with error message ‘xxxx already installed’, how to overcome this problem?

Answer: read the guide 🙂

kongja# portupgrade p5-libwww-5.79_1

—> Upgrading ‘p5-libwww-5.79_1’ to ‘p5-libwww-5.803’ (www/p5-libwww)
—> Building ‘/usr/ports/www/p5-libwww’
===> Cleaning for p5-Compress-Zlib-1.33

===> Checking if net/p5-URI already installed
===> p5-URI-1.35 is already installed
You may wish to “make deinstall” and install this port again
“make reinstall” to upgrade it properly.
If you really wish to overwrite the old port of net/p5-URI
without deleting it first, set the variable “FORCE_PKG_REGISTER”
in your environment or the “make install” command line.
*** Error code 1
Stop in /usr/ports/net/p5-URI.
*** Error code 1
Stop in /usr/ports/www/p5-libwww.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade30900.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! www/p5-libwww (p5-libwww-5.79_1) (unknown build error)
—> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

wow, check if the ports already installed

Continue reading

in Unix | 377 Words

Simple Way to Find Cisco IOS

Dynagen already accomodate dynamips,with last version of dyangen is 0.9.2 I’m ready to learn ciso router in our lab. While waiting for real cisco router I must practise first 🙂 After following video tutorial on installing dynagen I found that I need more thing : Cisco IOS From Wikipedia:

Cisco IOS (originally Internetwork Operating System) is the software used on the vast majority of Cisco Systems routers and all current Cisco network switches. IOS is a package of routing, switching, internetworking and telecommunications functions tightly integrated with a multitasking operating system. The first IOS was written by William Yeager. Cisco IOS has a characteristic command line interface (CLI), whose style has been widely copied by other networking products. The IOS CLI provides a fixed set of multiple-word commands — the set available is determined by the “mode” and the privilege level of the current user. “Global configuration mode” provides commands to change the system’s configuration, and “interface configuration mode” provides commands to change the configuration of a specific interface. A typical command may be “show interface fa0/48” or “no ip cef traffic-statistics“. All commands are assigned a privilege level, from 0 to 15, and can only be accessed by users with the necessary privilege. Through the CLI, the commands available to each privilege level can be defined.

Continue reading

Ignore port on FreeBSD

After update ports collection and find old port, need to upgrade. I found that port status : ‘Ignored

bow# portversion -v | grep ‘<'

XFree86-libraries-4.3.0_7 < needs updating (port has 4.4.0_3)

bow# portupgrade XFree86-libraries-4.3.0_7

** Port marked as IGNORE: x11/XFree86-4-libraries:
is part of XFree86-4

doh, new commit for this port 🙁

Try to update it’s makefile a bit

bow# cd /usr/ports/x11/XFree86-4-libraries/

bow# ee Makefile

find these lines:
.if ${X_WINDOW_SYSTEM:L} != xfree86-4
IGNORE= is part of XFree86-4

jadikan :

#.if ${X_WINDOW_SYSTEM:L} != xfree86-4
#IGNORE= is part of XFree86-4

try to portupgrade once again :

bow# portupgrade XFree86-libraries-4.3.0_7

—>Upgrading ‘XFree86-libraries-4.3.0_7’ to ‘XFree86-libraries-4.4.0_3’ (x11/XFree86-4-libraries)
—>Building ‘/usr/ports/x11/XFree86-4-libraries’
===>Cleaning for libiconv-1.9.2_1
===>Cleaning for gettext-0.14.4_1

done, upgrading to newest program
I love FreeBSD ports

in Unix | 60 Words