TCC 11/TCC 12 - can't load msvcrt-ruby18.dll

Mar 9, 2011
4
0
Kitchener, ON
I'd like to use the internal support for Ruby. My expectation is that the load time would be shorter?

I'm running

TCC 11,00,52 Windows 7 [Version 6,1,7601]
TCC Build 52 Windows 7 Build 7601 Service Pack 1

It's 64-bit W7.

if I try
[C:\]echo %@ruby[p 3 +4]
TCC: (Sys) Could not load Ruby dll (msvcrt-ruby18.dll)
p 3 +4


it doesn't work.
TCC12 x64 shows the same behaviour. According to the docs TC12 supports ruby 1.8 and 1.9. I've installed the version 1.9.2pl180 from rubyinstaller.org. The name of the DLL is msvcrt-ruby191.dll for the 1.9.2 version!
Can I define the path/name of the dll to load? I couldn't find anything in the docs or online.

Is there any way to get internal Ruby support in TCC?

thank you for your help.
 
Oct 18, 2008
339
2
I'd like to use the internal support for Ruby. My expectation is that the load time would be shorter?

I'm running

TCC 11,00,52 Windows 7 [Version 6,1,7601]
TCC Build 52 Windows 7 Build 7601 Service Pack 1

It's 64-bit W7.

if I try
[C:\]echo %@ruby[p 3 +4]
TCC: (Sys) Could not load Ruby dll (msvcrt-ruby18.dll)
p 3 +4


it doesn't work.
TCC12 x64 shows the same behaviour. According to the docs TC12 supports ruby 1.8 and 1.9. I've installed the version 1.9.2pl180 from rubyinstaller.org. The name of the DLL is msvcrt-ruby191.dll for the 1.9.2 version!
Can I define the path/name of the dll to load? I couldn't find anything in the docs or online.

Is there any way to get internal Ruby support in TCC?

thank you for your help.

Would it make sense to add in addition to the check box to add ruby
support, the version of ruby too -- many time once a new version is released (in this case ruby) the older version are not available any more

check with filehippo.com to see if older ruby version are there
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I'd like to use the internal support for Ruby. My expectation is that the load time would be shorter?

There's two problems here:

1) The Ruby developers changed the name of the library that embedded Ruby needs. This is inept (and a strong argument against embedding Ruby in any application!), but can be worked around by looking for multiple library names (as I have in the past with Ruby 1.8 and 1.9).

2) The second inept and more unforgivable problem is they removed and/or renamed a number of the internal Ruby functions in 1.9.x, which means anyone wanting to embed 1.9.x has to rewrite all their embedded Ruby code. I will take a look at that but I don't know how long it is going to take to implement (if it's doable at all).
 
Mar 9, 2011
4
0
Kitchener, ON
I will take a look at that but I don't know how long it is going to take to implement (if it's doable at all).
Rex, I appreciate your response. The change from ruby 1.8 to 1.9 was a big one. I don't think embedding script languages is a USP for TCC. I wouldn't rank it high on the backlog.

best regards,
scooter_de
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Rex, I appreciate your response. The change from ruby 1.8 to 1.9 was a big one. I don't think embedding script languages is a USP for TCC. I wouldn't rank it high on the backlog.

After spending several hours trying to get the embedded 1.9.2 code to work, I have to say that it's hopeless. I thought that the embedded Perl for Windows was the worst one I'd seen, but Ruby 1.9.2 has it beat. Some of the critical APIs are missing, others are renamed, and the rest don't work at all (most of them crash). Even the simplest example code from the Ruby docs crashes.

This is going to require debugging & fixing the Ruby code itself, and I don't have the time to do that at this point. 1.8 and 1.9 do seem to work, so I'd recommend sticking to that (and hope that 2.0 is a better job).
 
Similar threads
Thread starter Title Forum Replies Date
B How to? compatability with free d/load of TCC/LE Support 8
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1
V Comments from a first-time user (TCC 26) Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.28 Support 0
C TCC 26 BATCOMP BTM problems? Support 5
E TCC/CMD difference Support 5

Similar threads