May 11, 2011 Re: Linux: How to statically link against system libs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | "Nick Sabalausky" <a@a.a> wrote in message news:iq9ujn$111t$1@digitalmars.com... > > The only problem I'm having now (aside from the fact that I haven't attempted to deal with the other shared host server yet - the debian one from the horrible ipower company), is that CentOS 4.2 (or maybe it's just KDE) runs so slow in a VM that it frequently doesn't recognize when I let go of a key and so then it goes off doing crazy shit. :/ Or it'll swap my key presses if I type too fast. At one point I had a hell of a time just getting it to let me type in "cd dmd" correctly. (I don't think it's entirely because of my computer though. XP runs just fine in a VM for me, even with only 192MB RAM allocated to it instead of the 512MB given to CentOS 4.2) So I'm going to try putting CentOS 4.9 in a VM and replacing KDE with XFCE. And I'll also have VirtualBox enable 3D accel and see if maybe then the "VirtualBox Guest Additions" package will be able to use OpenGL. > It turns out the problem is rooted in the fact that 2.6 kernel uses 1,000Hz for...umm...something or other...whereas the 2.4 kernel only used 100Hz. Seems that's caused a lot of big performance problems in VMs. Apperently this was sorted out in one of the CentOS 5.x point releases, but CentOS 4 needs to use a specially-built kernel. Which, of course, I don't have a f'ing clue how to do. I did find some pre-made "VM-ified CentOS" VMs here: http://people.centos.org/tru/vmware/ I got the "centos-4-20100321/CentOS-4_desktop.i386.zip" one, and it seems to work except that X doesn't run because it complains it can't find any screens (or something like that). Not a clue on how to fix that, but the text-mode commandline + VirtualBox's shared folder's should hopefully be enough for me to at least get by. |
May 11, 2011 Re: Linux: How to statically link against system libs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | "Nick Sabalausky" <a@a.a> wrote in message news:iqd84f$2bv3$1@digitalmars.com... > "Nick Sabalausky" <a@a.a> wrote in message news:iq9ujn$111t$1@digitalmars.com... >> >> The only problem I'm having now (aside from the fact that I haven't attempted to deal with the other shared host server yet - the debian one from the horrible ipower company), is that CentOS 4.2 (or maybe it's just KDE) runs so slow in a VM that it frequently doesn't recognize when I let go of a key and so then it goes off doing crazy shit. :/ Or it'll swap my key presses if I type too fast. At one point I had a hell of a time just getting it to let me type in "cd dmd" correctly. (I don't think it's entirely because of my computer though. XP runs just fine in a VM for me, even with only 192MB RAM allocated to it instead of the 512MB given to CentOS 4.2) So I'm going to try putting CentOS 4.9 in a VM and replacing KDE with XFCE. And I'll also have VirtualBox enable 3D accel and see if maybe then the "VirtualBox Guest Additions" package will be able to use OpenGL. >> > > It turns out the problem is rooted in the fact that 2.6 kernel uses 1,000Hz for...umm...something or other...whereas the 2.4 kernel only used 100Hz. Seems that's caused a lot of big performance problems in VMs. Apperently this was sorted out in one of the CentOS 5.x point releases, but CentOS 4 needs to use a specially-built kernel. Which, of course, I don't have a f'ing clue how to do. Hmm, it seems what it needs are some "Kernel Parameters", however the hell those are applied: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427 > I did find some pre-made "VM-ified CentOS" VMs here: http://people.centos.org/tru/vmware/ I got the "centos-4-20100321/CentOS-4_desktop.i386.zip" one, and it seems to work except that X doesn't run because it complains it can't find any screens (or something like that). Not a clue on how to fix that, but the text-mode commandline + VirtualBox's shared folder's should hopefully be enough for me to at least get by. > Ah. I installed the VirtualBox's Guest Additions, rebooted, and then X was working just fine :) And nice and zippy too this time (relatively speaking, of course, but it's *much* better now and actually usable). I do need to re-install the guest additions again now to get the fancy seamless integrated-mouse stuff that's part of the guest additions. But it all seems good now :) |
May 11, 2011 Re: Linux: How to statically link against system libs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On 10/05/2011 04:48, Nick Sabalausky wrote:
> "Adam D. Ruppe"<destructionator@gmail.com> wrote in message
> news:iqa7bi$1djh$1@digitalmars.com...
>> Nick Sabalausky wrote:
>>> 2. Remove "-L--no-warn-search-mismatch"
>>
>> Note for readers: this is in dmd.conf and is a relatively new thing.
>> My dmd 2.051 and older installs always worked, but with the 2.053
>> beta I just played with, had to make this change as well as
>> recompile dmd for stupid centos to work with it.
>>
>
> Do we know what that switch is for? Just curious.
>
>>> CentOS 4.2 (or maybe it's just KDE) runs so slow in a VM
>>
>> KDE sucks. The best thing to do is probably to not bother with a
>> gui in the vm at all as well as to not use the virtual machine
>> screen - they are slow as sin.
>>
>
> Actually I just realized it was Gnome. (I don't know I could have mixed
> those two up...)
>
>> Instead, run sshd on the linux vm, make inbound networking work
>> to port 22 (however you do that in virtual box) and then access
>> it through PuTTY or something.
>>
>> That way, you bypass the slow ass VM graphics entirely.
>>
>>
>> (similarly, if you virtualize Windows, Remote Desktop into the
>> VM works a lot better than the vm's own graphics in my experience).
>
> XP seems to work fine for me in VirtualBox (And my CPU doesn't even have
> hardware virtualization support). But I may go ahead and try something like
> you're suggesting.
>
>
>
I have had trouble with this same thing before using versions of VMware. However, we use vmware virtual server now (free) to run centos 4. to power a media wiki site, which does work without any trouble.
Although I have found virtualbox is generally very good with all this. Otherwise yes, I would try to ssh in instead.
|
May 11, 2011 Re: Linux: How to statically link against system libs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On 11/05/2011 06:47, Nick Sabalausky wrote:
> "Nick Sabalausky"<a@a.a> wrote in message
> news:iq9ujn$111t$1@digitalmars.com...
>>
>> The only problem I'm having now (aside from the fact that I haven't
>> attempted to deal with the other shared host server yet - the debian one
>> from the horrible ipower company), is that CentOS 4.2 (or maybe it's just
>> KDE) runs so slow in a VM that it frequently doesn't recognize when I let
>> go of a key and so then it goes off doing crazy shit. :/ Or it'll swap my
>> key presses if I type too fast. At one point I had a hell of a time just
>> getting it to let me type in "cd dmd" correctly. (I don't think it's
>> entirely because of my computer though. XP runs just fine in a VM for me,
>> even with only 192MB RAM allocated to it instead of the 512MB given to
>> CentOS 4.2) So I'm going to try putting CentOS 4.9 in a VM and replacing
>> KDE with XFCE. And I'll also have VirtualBox enable 3D accel and see if
>> maybe then the "VirtualBox Guest Additions" package will be able to use
>> OpenGL.
>>
>
> It turns out the problem is rooted in the fact that 2.6 kernel uses 1,000Hz
> for...umm...something or other...whereas the 2.4 kernel only used 100Hz.
> Seems that's caused a lot of big performance problems in VMs. Apperently
> this was sorted out in one of the CentOS 5.x point releases, but CentOS 4
> needs to use a specially-built kernel. Which, of course, I don't have a
> f'ing clue how to do. I did find some pre-made "VM-ified CentOS" VMs here:
> http://people.centos.org/tru/vmware/ I got the
> "centos-4-20100321/CentOS-4_desktop.i386.zip" one, and it seems to work
> except that X doesn't run because it complains it can't find any screens (or
> something like that). Not a clue on how to fix that, but the text-mode
> commandline + VirtualBox's shared folder's should hopefully be enough for me
> to at least get by.
>
>
When you choose what OS to install in virtualbox it gives you an option of redhat , ubuntu etc. Try choosing redhat (aka centos), which *may* fix this problem for you. Or Try "Linux 2.4" which is in the list too.
|
May 11, 2011 Re: Linux: How to statically link against system libs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On 09/05/2011 22:28, Nick Sabalausky wrote:
> "Spacen Jasset"<spacenjasset@yahoo.co.uk> wrote in message
> news:iq69q1$1ack$1@digitalmars.com...
>> It should work,but again is depends what your target platform is. It's
>> quite important that - Even on windows. At the company I am now
>> contracting for we compile the software agents using visual studio 2003
>> because later versions do not let the agent work with windows 98. This is
>> not just a Linux phenomenon.
>>
>> Centos 4 is fairly new, and it's possible that your hosting providers use
>> older, even unsupported versions of distributions. Centos 3 might have
>> been a wiser bet. In any case centos 4.7 is a point release of 4.0 and as
>> such there should be no breaking libc changes.
>>
>
> I noticed the 4.7+ installers have an option for i586, but there seems to be
> a lot of conflicting info about whether the non-i586 install is i386 or
> i686. Any idea? I've heard that CentOS 5 is i686 despite claiming to be
> i386, but I can't find any concrete info about whether that's true of 4.x as
> well.
>
>
Well It shouldn't matter, as long as it doesn't day x86_64, in which case it's 64 bit. i.e. parts of the kernel may use i686 instructions, if available, which doesn't matter for you at all I guess. It's got nothing to do with dmd. Or ld unless you tell it to generate something for a specific processor.
|
Copyright © 1999-2021 by the D Language Foundation