저도 방금 레드햇9 깔아봤는데 똑같은 문제가 발생하네요.
구글에 찾아서 전 문제를 해결했습니다.
아래 문서를 한번 참고해보시고요..
맨처음에 나온 /usr/local/kylix3/bin/에 있는 startdelphi 이파일을
vi로 수정하셔서
2번째 줄에
export LD_ASSUME_KERNEL=2.2.5
이렇게만 추가하셔도 기본적인 동작은 잘 될겁니다.
그럼.
Kylix 3, RedHat 9, mySQL Distrib.3.23.54 with dbExpress
****************************************************************************
Many of the changes below require superuser permissions.
Easiest thing is to have gnome / KDE loaded as user and then open
a terminal as su. We standardly use emacs -nw filename to edit the
various config files. Kylix changes are necessarily done in Kylix
as ordinary user.
****************************************************************************
INITIAL PROBLEM
If you Run an application from within the Kylix IDE the whole thing hangs.
(Ctrl-Alt-Backspace to restart X when this happens.)
Goto /usr/local/kylix3/bin/
Edit startdelphi, startkylix and startbcb
Right under #!/bin/bash enter the line:
export LD_ASSUME_KERNEL=2.2.5
Unfortunately this also seems to stop working when the projects get larger.
Also Kylix often doesn't allow applications to close down when run from IDE.
It's probably easier to have it run from an icon on the desktop or from
a shell script kept permanently on the toolbar if you're not actually using
the IDE for debugging.
Although the function keys work within Kylix, combined with Shft-, Ctrl- and
Alt- they fail to work. This can be hard work for those used to pressing
Ctrl-F9 to compile program. One way out is to put an icon next to Run on the
toolbar.
Right click | Customize... | Commands
Highlight Project in the list
Find the Compile [name of prj] command and drag it back to the toolbar.
Alternatively get used to hitting Alt-PC instead.
****************************************************************************
INITIAL PROBLEM
"Unable to load libmysqlclient.so" problem
Goto /home/chris/.borland/dbxdrivers and ensure the [MySQL] section has an
entry:
VendorLib=libmysqlclient.so
Now goto /usr/local/kylix3/bin/
add a symbolic link called libmysqlclient.so to
/usr/lib/mysql/libmysqlclient.so.10.0.0
where the actual file lives:
ln -s /usr/local/kylix3/bin/libmysqlclient.so.10.0 libmysqlclient.so
Finally put in an environment variable. This doesn't seem to required for
each user
so you can put it in /etc/profile and have it load at machine startup.
Open the file and at the end type in the following TWO lines:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/kylix3/bin
export LD_LIBRARY_PATH
You need to reboot the machine for these lines to take effect.
****************************************************************************
INITIAL PROBLEM
Executables produced by Kylix won't run independently
Goto /etc
Edit ld.so.conf
Add a path /usr/local/kylix3/bin to the bottom of the list of paths.
Run ldconfig from the terminal
Redhat at least requires the full path to be entered:
/sbin/ldconfig
****************************************************************************
INITIAL PROBLEM
Invalid UserName / Password error
seems to be feature of using K3 with MySQL Distrib.3.23.54
To get over this problem we used a bought driver.
Goto:
www.crlab.com | Download | dbxpress drivers | dbxpress driver for MySQL,
Linux v.1.03
copy libsqlmda.so.1.03 to /usr/local/kylix3/bin
this is going to be a replacement for libsqlmy.so
The readme file has information about changing 2 files:
/home/chris/.borland/dbxdrivers and dbxconnections
dbxdrivers:
copy the whole of the [MySQL] section and rename it [MySQL CoreLab]
change
LibraryName=libsqlmda.so.1.03
dbxconnections:
[MySQL CoreLab]
DriverName=MySQL CoreLab
HostName=localhost
Database=Athena
User_Name=AthenaWeb
Password=
BlobSize=-1
The section header in dbxdrivers must match the section header in
dbxconnections.
The system then complains that it cannot load procedure getMYSQL
Goto the TSQLConnection component in Kylix and check the GetDriverFunc
is set to getSQLDriverMySQL (LOWER CASE y!!!). Check the dbxdrivers entry
has a matching entry. NOTE: this is different to the entry for [MySQL] that
comes with Kylix.
Next the system complains that it cannot find /var/run/mysqld/mysqld.sock
Goto the /var/run/mysqld/ directory and add a symbolic link to the actual
.sock file:
ln -s /var/lib/mysql/mysql.sock mysqld.sock
You need to restart Kylix for any of this to take effect.
****************************************************************************
박찬호 님이 쓰신 글 :
: 저두 같은 문제 때문에 고생하고 있습니다.
: 아시는 분 꼭 도와주세요~~~ ^^
|