找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

ubuntu升级后,scratchbox登录不了的解决

2009-12-20 13:14| 发布者: admin| 查看: 110| 评论: 0|原作者: 江月

今天装了个较新的ubuntu后,发现登录/scratchbox不正常了。还以为是/scratchbox坏了,于是重新解包,配置/scratchbox,结果还是登录不了,错误如下:
mxzh@mxzh-desktop:~/opt2/scratchbox-tar$ /scratchbox/login
Welcome to Scratchbox, the cross-compilation toolkit!
Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
我的ubuntu是8.04,内核是2.6.24-16-generic
查了一些资料,感觉主要是高版本的内核引起的。主要解决如下
主要是参考:
http://www.ptlug.org/wiki/Howto_Installing_Maemo_SDK_4
其他的资料也大多是从上面的这个来的
Howto Installing Maemo SDK 4 Installing Scratchbox
The first tool you have to install is Scratchbox. I suggest you to use the script provided but you could choose also to install it manually (in this case please refer to [
this site
] for detailed instructions).
Before beginning the installation of Scratchbox, you have to become root.
First of all set the permission of the script file:
chmod a x ./maemo-scratchbox-install_4.0.1.sh
Then run it with these parameters:
./maemo-scratchbox-install_4.0.1.sh
Scratchbox environment will be installed in /scratchbox/
Once Scratchbox is installed, you have to add a user to the environment, in this way:
/scratchbox/sbin/sbox_adduser USER yes
where USER is your Linux username.
Please note that you'll have to logout and login again to be
able to log into you new Scratchbox environment. To test it you simply
have to start Scratchbox from your local user:
andy80@noteboontu:~/download/maemo_4.0.1$ /scratchbox/login
NOTE: on Ubuntu installation, you have to disable VDSO to make Scratchbox work fine, or you'll get errors like this:
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
you can fix that executing this command from root user:
echo 0 | sudo tee /proc/sys/vm/vdso_enabled
Another problem you could have is related to mmap under Ubuntu Hardy, you can fix with this command:
echo 4096 | sudo tee /proc/sys/vm/mmap_min_addr
To make all these changes permanent after each reboot, you can edit /etc/sysctl.conf and add these lines:
vm.vdso_enabled = 0
vm.mmap_min_addr = 4096
then apply it in this way:
sysctl -p
[
edit
] Installing Maemo SDK
另外可看看
http://inz.fi/blog/2008/01/17/scratchbox-on-hardy/

http://blog.enterpriselab.ch/zdweber/2008/04/







最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 17:30 , Processed in 0.180705 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部