473,839 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to copy Symbolic link from linux to Windows

10 New Member
Hello Friends
I had built a library on Linux.
Now i want to copy the lib folder containing symbolic links to windows.
but when i copied those to windows each link is getting exactly the same memory as the original one.
For Example:
On Linux
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so -> libicudata.so.
36.0
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so.3 6 -> libicudata.
so.36.0
-rw-r--r-- 1 msingh named 10153924 Mar 14 16:58 libicudata.so.3 6.0

On Windows
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.3 6
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.3 6.0

How can i rectify this problem.
Mar 21 '07 #1
8 18006
Motoma
3,237 Recognized Expert Specialist
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.
Mar 21 '07 #2
Mini Singh
10 New Member
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 22 '07 #3
Motoma
3,237 Recognized Expert Specialist
One solution would be to copy the actual file that the link is pointing to.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 23 '07 #4
Mini Singh
10 New Member
One solution would be to copy the actual file that the link is pointing to.
Hi Motoma
Are you aware of any other solution for the problem of copying symbolic links from linux to windows.
If yes than please let me know.

~Mini Singh
Apr 19 '07 #5
Motoma
3,237 Recognized Expert Specialist
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Apr 19 '07 #6
Mini Singh
10 New Member
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Linux Partition is not on the same machine.My login is mounted on linux.I connect to that machine through my login.i.e i am using NFS to mount the partiton.
Now after building that library on linux i need to copy the lib folders from 'Linux to Windows and here the problem arises.

If you need more explanation then let me know.
Apr 20 '07 #7
Motoma
3,237 Recognized Expert Specialist
You will not be able to create symbolic links on your Windows partition. You will have to deal with three copies of the file, or change your files to link against the original.

I am curious, what libraries are these, and what are you trying to accomplish by putting them on a Windows partition? Surely you will not be able to compile against them from Windows, and if you are merely trying to move them while preserving the structure you could use tar which will preserve the symlinks.
Apr 20 '07 #8
anaser
1 New Member
hello Motoma,

can you help me about following problem-



I am trying to compile openoffice.org in windows. I am using cygwin. When I give ./configure command then following message displayed-


*************** *************** *************** *************** ********
* *
* OpenOffice.org build configuration. *
* *
* The configure process checks your platform to see whether *
* you can build OpenOffice.org on it. *
* This process checks all pre-requisites and generates a file *
* containing the necessary environment variables. *
* Source this file after configure has ended successfully. *
* *
* Any warning that is generated during the configure process *
* must be taken into account since it can be a reason for *
* an unsuccessful build of OpenOffice.org *
* *
*************** *************** *************** *************** ********

*************** *************** *************** *************** ********
* *
* Checking the platform pre-requisites. *
* *
*************** *************** *************** *************** ********

checking for egrep... grep -E
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for sed... /usr/bin/sed
checking for solenv environment... default
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
cygwin
checking Cygwin version... 1.7.5(0.225/5/3)
checking whether to enable crashdump feature... no
checking whether to use the standard non-optimizing compiler... no
checking whether to turn warnings to errors... no
checking whether to do a debug build... no
checking whether to build with additional debug utilities... no, full product bu
ild
checking whether to include symbols into final build... no
checking whether to strip the solver or not.... checking whether to enable nativ
e CUPS support... no
checking whether to enable fontconfig support... no
checking whether to enable filters for legacy binary file formats (StarOffice 5.
2)... yes
checking whether to use DirectX... yes
checking whether to use ActiveX... yes
checking whether to use ATL... yes
checking whether to use RPATH in shared libraries... yes
checking whether to include MySpell dictionaries... yes
checking which shell to use... configure: error: /usr/bin/gawk, awk, tar or gunz
ip is a cygwin symlink!
Native windows programs cannot use cygwin symlinks. Remove the symbolic
link, and copy the program to the name of the link.

------------------------------------------------------------------------

I found several solution in net and already implemented all but still facing the problem.

For example::I triyed with

cd /bin
rm awk.exe
cp gawk.exe awk.exe

and also for

gzip.exe / gunzip.exe;

For tar when I am running-

$ ls -l /bin/tar.exe

it shows-

-rwxr-xr-x 1 Naser root 317454 2010-06-29 18:48 /bin/tar.exe

followings are also installed-

Archive::Zip
XML::Parser
URI
LWP::UserAgent
Crypt::SSLeay
SOAP::Lite


I get stacked with the above error, please help me.



thanks.
Aug 12 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3479
by: Khue Pham | last post by:
Does anyone knows how to copy database from one server to another. By copying I mean literally everything, not just the database. I know we can dump the database from one server then reload it to another one. However, I have a specific need for this and here is my problem: I have my development server as of RedHat 9.0 and I install the combination of LAMPS (Linux+Apache+MySQL+PHP+SSL). I configure it works perfectly on my development...
1
2117
by: chris kittell | last post by:
Hi All, on db2 v8.1 for linux 32 bit redhat 7.3, when installing fixpak6,it's overwriting the symbolic link that I defined for the install directory, and proceeding to fill up my root partition. As far as I can tell, the only command in the ../installFixPak that might do it is the rpm itself...ideas? Thanks
1
6399
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded 'D:\prj\simulador HMS\Enviar Datos al sim\CMS\Debug\CMS.exe', no matching symbolic information found. Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic
3
2793
by: TK | last post by:
Hi, how can I check wether a file a symbolic link is? Thanks for help. o-o Thomas
4
3381
by: TK | last post by:
Hi, I have to know whether a typical file (under Linux) a symbolic link is (in the sense of the stat()-Funktion). How can I check it excactly? Thanks for help. o-o THomas
1
3497
by: Remote_User | last post by:
Hi All, .NET 1.1 doesn't support creating symbolic links to files, like in Linux? Can i use C# to make a file point to another file? Thanks.
1
8026
by: Remote_User | last post by:
Hi All, I am using .NET FW 1.1. Trying to create symbolic link(like in Linux)/file shortcut in the Windows sense across files programmaticaly using C#, could someone give me an idea if this feature is supported?
1
8366
by: amygrant1701 | last post by:
Hi, I've done this before so I don't see what I could doing wrong here. I'm running mysql 5x on freebsd. I'm using the default data directory of "/var/db/mysql" In there I have several dozen mysql datasbases that are functioning perfectly. I am trying to add a database which will be stored on a different drive, therefore the entry in "/var/db/mysql" should be a symbolic link
1
4654
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the debugger. I know that I get these warnings because the OS symbols arn't installed (a few of them loaded fine). As far as I can remember, I didn't touch anything that should mess with the debugger so I don't know how to fix it and I need to be able to...
0
9854
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9696
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10903
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9425
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7827
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7015
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5681
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3131
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.